Skip to content

Commit 9ee6004

Browse files
committed
♻️ build layer in dist
1 parent ebb9c6c commit 9ee6004

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
!jest.config.js
33
*.d.ts
44
node_modules
5+
dist
56

67
# CDK asset staging directory
78
.cdk.staging

lib/InterceptorExtension.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ export class InterceptorExtension
1818
this.layerVersion = new LayerVersion(scope, "InterceptorLayer", {
1919
compatibleRuntimes: [Runtime.NODEJS_18_X],
2020
compatibleArchitectures: [Architecture.ARM_64],
21-
code: Code.fromAsset("src/layers/interceptorExtension"),
21+
code: Code.fromAsset("dist/layers/interceptorExtension"),
2222
});
2323
this.entryPoint = "interceptor.js";
2424
}

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"cdk": "cdk",
1414
"deploy": "pnpm build:layer && cdk deploy",
1515
"start": "cdk watch",
16-
"build:layer": "./node_modules/.bin/esbuild ./src/layers/interceptorExtension/interceptor.ts --bundle --outfile='./src/layers/interceptorExtension/interceptor.js' --platform=node --main-fields=module,main"
16+
"build:layer": "./node_modules/.bin/esbuild ./src/layers/interceptorExtension/interceptor.ts --bundle --outfile='./dist/layers/interceptorExtension/interceptor.js' --platform=node --main-fields=module,main"
1717
},
1818
"devDependencies": {
1919
"@swarmion/integration-tests": "^0.27.0",

0 commit comments

Comments
 (0)