Skip to content

Commit 9785b75

Browse files
committed
Switch to using source for hashing
1 parent 09d9bba commit 9785b75

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "aws-lambda.js",
3-
"version": "0.0.2",
3+
"version": "0.0.3",
44
"main": "dist/lambda.js",
55
"repository": {
66
"type": "git",

src/lambda.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,7 @@ export class Function extends lambda.Function {
128128
this.layer = new lambda.LayerVersion(scope, `${id}Layer`, {
129129
code: lambda.Code.fromAsset(directory, {
130130
exclude: ["*", "!package.json", "!package-lock.json"],
131+
assetHashType: cdk.AssetHashType.SOURCE,
131132
bundling: makeBundlingOptions({ build: preparation.build, dependencies: preparation.dependencies }, [
132133
"mkdir /asset-output/nodejs",
133134
"node /lambda.js/writeDependencies.js",

0 commit comments

Comments
 (0)