Skip to content

Commit f8a94d8

Browse files
authored
chore: fixup @aws-cdk/cdk-lib-alpha bundling (#26133)
The bundle needs to contain the correct WASM embed at the right path in order to be able to load cleanly. ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
1 parent 3c29223 commit f8a94d8

File tree

4 files changed

+8
-7
lines changed

4 files changed

+8
-7
lines changed

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,4 +24,4 @@ npm-shrinkwrap.json
2424

2525
junit.xml
2626

27-
27+
lib/*.wasm

packages/@aws-cdk/cli-lib-alpha/THIRD_PARTY_LICENSES

+4-4
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ THE SOFTWARE.
3737

3838
----------------
3939

40-
** acorn@8.8.2 - https://www.npmjs.com/package/acorn/v/8.8.2 | MIT
40+
** acorn@8.9.0 - https://www.npmjs.com/package/acorn/v/8.9.0 | MIT
4141
MIT License
4242

4343
Copyright (C) 2012-2022 by various contributors (see AUTHORS)
@@ -268,7 +268,7 @@ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH RE
268268

269269
----------------
270270

271-
** aws-sdk@2.1379.0 - https://www.npmjs.com/package/aws-sdk/v/2.1379.0 | Apache-2.0
271+
** aws-sdk@2.1401.0 - https://www.npmjs.com/package/aws-sdk/v/2.1401.0 | Apache-2.0
272272
AWS SDK for JavaScript
273273
Copyright 2012-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved.
274274

@@ -2951,7 +2951,7 @@ License, as follows:
29512951

29522952
----------------
29532953

2954-
** [email protected].1 - https://www.npmjs.com/package/semver/v/7.5.1 | ISC
2954+
** [email protected].2 - https://www.npmjs.com/package/semver/v/7.5.2 | ISC
29552955
The ISC License
29562956

29572957
Copyright (c) Isaac Z. Schlueter and Contributors
@@ -3402,7 +3402,7 @@ SOFTWARE.
34023402

34033403
----------------
34043404

3405-
** [email protected].0 - https://www.npmjs.com/package/tslib/v/2.5.0 | 0BSD
3405+
** [email protected].3 - https://www.npmjs.com/package/tslib/v/2.5.3 | 0BSD
34063406
Copyright (c) Microsoft Corporation.
34073407

34083408
Permission to use, copy, modify, and/or distribute this software for any

packages/@aws-cdk/cli-lib-alpha/generate.sh

100644100755
File mode changed.

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

+3-2
Original file line numberDiff line numberDiff line change
@@ -68,8 +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 ./lib",
72-
"yarn bundle"
71+
"cp ../../../node_modules/vm2/lib/bridge.js ../../../node_modules/vm2/lib/setup-sandbox.js ../../aws-cdk/lib/vendor/noctilucent/index_bg.wasm ./lib/",
72+
"yarn bundle",
73+
"node ./lib/main.js >/dev/null 2>/dev/null </dev/null"
7374
],
7475
"env": {
7576
"AWSLINT_BASE_CONSTRUCT": true

0 commit comments

Comments
 (0)