From 5219622b3f888d227e326c8e7ac917b44214b368 Mon Sep 17 00:00:00 2001 From: Momo Kornher Date: Tue, 4 Jul 2023 17:19:16 +0100 Subject: [PATCH 1/2] fix(cli-lib): bundle bootstrap template --- packages/@aws-cdk/cli-lib-alpha/.gitignore | 1 + packages/@aws-cdk/cli-lib-alpha/.npmignore | 1 + packages/@aws-cdk/cli-lib-alpha/package.json | 4 +++- 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/packages/@aws-cdk/cli-lib-alpha/.gitignore b/packages/@aws-cdk/cli-lib-alpha/.gitignore index 9e76cb9fe4569..3174a63280a3d 100644 --- a/packages/@aws-cdk/cli-lib-alpha/.gitignore +++ b/packages/@aws-cdk/cli-lib-alpha/.gitignore @@ -25,3 +25,4 @@ npm-shrinkwrap.json junit.xml lib/*.wasm +lib/*.yaml diff --git a/packages/@aws-cdk/cli-lib-alpha/.npmignore b/packages/@aws-cdk/cli-lib-alpha/.npmignore index 23e07b36e8bbc..4cd6d7c4a2b6c 100644 --- a/packages/@aws-cdk/cli-lib-alpha/.npmignore +++ b/packages/@aws-cdk/cli-lib-alpha/.npmignore @@ -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/ diff --git a/packages/@aws-cdk/cli-lib-alpha/package.json b/packages/@aws-cdk/cli-lib-alpha/package.json index ed388495c9a2f..5e75fb7387650 100644 --- a/packages/@aws-cdk/cli-lib-alpha/package.json +++ b/packages/@aws-cdk/cli-lib-alpha/package.json @@ -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 Date: Tue, 4 Jul 2023 17:27:44 +0100 Subject: [PATCH 2/2] fixup --- packages/@aws-cdk/cli-lib-alpha/.gitignore | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/@aws-cdk/cli-lib-alpha/.gitignore b/packages/@aws-cdk/cli-lib-alpha/.gitignore index 3174a63280a3d..de6b6804a7733 100644 --- a/packages/@aws-cdk/cli-lib-alpha/.gitignore +++ b/packages/@aws-cdk/cli-lib-alpha/.gitignore @@ -24,5 +24,5 @@ npm-shrinkwrap.json junit.xml -lib/*.wasm -lib/*.yaml +lib/**/*.wasm +lib/**/*.yaml