Skip to content

Commit

Permalink
fix(cli-lib): bundle bootstrap template (#26229)
Browse files Browse the repository at this point in the history
Closes #26224

----

*By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
  • Loading branch information
mrgrain authored Jul 4, 2023
1 parent 928b64e commit 41cb288
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
3 changes: 2 additions & 1 deletion packages/@aws-cdk/cli-lib-alpha/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,5 @@ npm-shrinkwrap.json

junit.xml

lib/*.wasm
lib/**/*.wasm
lib/**/*.yaml
1 change: 1 addition & 0 deletions packages/@aws-cdk/cli-lib-alpha/.npmignore
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ tsconfig.json
!lib/main.js
!lib/bridge.js
!lib/setup-sandbox.js
!lib/api/bootstrap/bootstrap-template.yaml
!*.d.ts
!*.lit.ts
!rosetta/
Expand Down
4 changes: 3 additions & 1 deletion packages/@aws-cdk/cli-lib-alpha/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,9 @@
"cdk-build": {
"post": [
"yarn attribute",
"cp ../../../node_modules/vm2/lib/bridge.js ../../../node_modules/vm2/lib/setup-sandbox.js ../../aws-cdk/lib/vendor/noctilucent/index_bg.wasm ./lib/",
"cp ../../../node_modules/vm2/lib/bridge.js ../../../node_modules/vm2/lib/setup-sandbox.js ./lib/",
"cp ../../aws-cdk/lib/vendor/noctilucent/index_bg.wasm ./lib/",
"mkdir -p ./lib/api/bootstrap/ && cp ../../aws-cdk/lib/api/bootstrap/bootstrap-template.yaml ./lib/api/bootstrap/",
"yarn bundle",
"node ./lib/main.js >/dev/null 2>/dev/null </dev/null"
],
Expand Down

0 comments on commit 41cb288

Please sign in to comment.