Skip to content

Commit 41cb288

Browse files
authored
fix(cli-lib): bundle bootstrap template (#26229)
Closes #26224 ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
1 parent 928b64e commit 41cb288

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

packages/@aws-cdk/cli-lib-alpha/.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,4 +24,5 @@ npm-shrinkwrap.json
2424

2525
junit.xml
2626

27-
lib/*.wasm
27+
lib/**/*.wasm
28+
lib/**/*.yaml

packages/@aws-cdk/cli-lib-alpha/.npmignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ tsconfig.json
2525
!lib/main.js
2626
!lib/bridge.js
2727
!lib/setup-sandbox.js
28+
!lib/api/bootstrap/bootstrap-template.yaml
2829
!*.d.ts
2930
!*.lit.ts
3031
!rosetta/

packages/@aws-cdk/cli-lib-alpha/package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,9 @@
6868
"cdk-build": {
6969
"post": [
7070
"yarn attribute",
71-
"cp ../../../node_modules/vm2/lib/bridge.js ../../../node_modules/vm2/lib/setup-sandbox.js ../../aws-cdk/lib/vendor/noctilucent/index_bg.wasm ./lib/",
71+
"cp ../../../node_modules/vm2/lib/bridge.js ../../../node_modules/vm2/lib/setup-sandbox.js ./lib/",
72+
"cp ../../aws-cdk/lib/vendor/noctilucent/index_bg.wasm ./lib/",
73+
"mkdir -p ./lib/api/bootstrap/ && cp ../../aws-cdk/lib/api/bootstrap/bootstrap-template.yaml ./lib/api/bootstrap/",
7274
"yarn bundle",
7375
"node ./lib/main.js >/dev/null 2>/dev/null </dev/null"
7476
],

0 commit comments

Comments
 (0)