Skip to content

Commit 930cd74

Browse files
rshadeastuyve
andauthored
chore: Replace aws-lambda with @types/aws-lambda (#1631) (#1779)
`aws-lambda` is a [poorly-named package](https://www.npmjs.com/package/aws-lambda) which is a CLI tool to deploy Lambda functions and includes heavy dependencies (the entire v2 `aws-sdk`). It also incidentally includes types for Lambda events. The correct package for Lambda event types is `@types/aws-lambda` as per the [docs](https://docs.aws.amazon.com/lambda/latest/dg/typescript-handler.html). This PR adds the correct devDependency and removes the dependency on `aws-lambda` Co-authored-by: AJ Stuyvenberg <[email protected]>
1 parent 0b1e5bc commit 930cd74

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

aws-ts-lambda-efs/package.json

+4-1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@
77
"@pulumi/awsx": "2.19.0",
88
"@pulumi/pulumi": "3.145.0",
99
"@pulumiverse/time": "^0.0.17",
10-
"aws-lambda": "^1.0.7"
10+
11+
},
12+
"devDependencies": {
13+
"@types/aws-lambda": "^8.10.137"
1114
}
1215
}

0 commit comments

Comments
 (0)