Skip to content

Commit fbaa5cb

Browse files
committed
published to npm
1 parent 3f45339 commit fbaa5cb

File tree

3 files changed

+70
-48
lines changed

3 files changed

+70
-48
lines changed

package-lock.json

Lines changed: 57 additions & 38 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
2-
"name": "AwsLambda",
3-
"version": "0.0.1",
2+
"name": "@serverless/aws-lambda",
3+
"version": "0.1.1",
4+
"main": "./serverless.js",
45
"publishConfig": {
56
"access": "public"
67
},
@@ -11,10 +12,12 @@
1112
"author": "Serverless, Inc.",
1213
"license": "MIT",
1314
"dependencies": {
14-
"@serverless/components": "^0.0.5",
15-
"fs-extra": "^7.0.1",
16-
"aws-sdk": "^2.387.0",
17-
"ramda": "^0.26.1"
15+
"@serverless/aws-iam-role": "^0.1.0",
16+
"@serverless/aws-s3": "^0.1.0",
17+
"@serverless/components": "^0.1.0",
18+
"aws-sdk": "^2.424.0",
19+
"fs-extra": "^7.0.0",
20+
"ramda": "^0.26.0"
1821
},
1922
"devDependencies": {
2023
"babel-eslint": "9.0.0",

serverless.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ class AwsLambda extends Component {
5050
credentials: this.context.credentials.aws
5151
})
5252

53-
const awsIamRole = await this.load('AwsIamRole')
53+
const awsIamRole = await this.load('@serverless/aws-iam-role')
5454

5555
config.role = config.role || (await awsIamRole(config))
5656

@@ -61,7 +61,7 @@ class AwsLambda extends Component {
6161

6262
let deploymentBucket
6363
if (config.bucket) {
64-
deploymentBucket = await this.load('AwsS3')
64+
deploymentBucket = await this.load('@serverless/aws-s3')
6565
await deploymentBucket({ name: config.bucket })
6666
}
6767

@@ -112,8 +112,8 @@ class AwsLambda extends Component {
112112

113113
this.cli.status(`Removing`)
114114

115-
const awsIamRole = await this.load('AwsIamRole')
116-
const deploymentBucket = await this.load('AwsS3')
115+
const awsIamRole = await this.load('@serverless/aws-iam-role')
116+
const deploymentBucket = await this.load('@serverless/aws-s3')
117117

118118
// there's no need to pass names as input
119119
// since it's saved in the child component state

0 commit comments

Comments
 (0)