Skip to content

Commit 11f4ede

Browse files
authored
chore: fix bump running out of memory (#24983)
The bump performs a full build of `aws-cdk-lib` right now, but it doesn't need to. * Just run the `on-bump` scripts we need through `ts-node` instead. * Also make `@aws-cdk/cx-api` a copy of `aws-cdk-lib.cx-api`, same as `cloud-assembly-schema`. Move the `on-bump` script from `cx-api` to `aws-cdk-lib`. ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
1 parent 55621ad commit 11f4ede

File tree

97 files changed

+112
-4660
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

97 files changed

+112
-4660
lines changed

bump.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,4 @@ if [[ "${LEGACY_BUMP:-}" == "" ]]; then
2020
# if we're using 'cdk-release' for the bump, build that package, including all of its dependencies
2121
npx lerna run build --include-dependencies --scope @aws-cdk/cdk-release
2222
fi
23-
${scriptdir}/scripts/bump.js ${1:-minor}
23+
VERBOSE=1 exec ${scriptdir}/scripts/bump.js ${1:-minor}

packages/@aws-cdk/cloud-assembly-schema/package.json

-1
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,6 @@
4848
"build+test+package": "yarn build+test && yarn package",
4949
"build+test": "yarn build && yarn test",
5050
"compat": "cdk-compat",
51-
"update-schema": "bash scripts/update-schema.sh",
5251
"rosetta:extract": "yarn --silent jsii-rosetta extract",
5352
"build+extract": "yarn build && yarn rosetta:extract",
5453
"build+test+extract": "yarn build+test && yarn rosetta:extract"

packages/@aws-cdk/cx-api/.gitignore

+8-21
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,9 @@
1-
*.js
2-
*.js.map
3-
*.d.ts
4-
node_modules
5-
dist
6-
tsconfig.json
7-
.jsii
8-
9-
.LAST_BUILD
10-
.LAST_PACKAGE
11-
*.snk
12-
.nyc_output
13-
coverage
14-
nyc.config.js
15-
!.eslintrc.js
1+
# This package is copied from aws-cdk-lib/cloud-assembly-schema, ignore everything
2+
# except package.json
3+
*
4+
!package.json
5+
!.npmignore
166
!jest.config.js
17-
18-
junit.xml
19-
!**/*.snapshot/**/asset.*/*.js
20-
!**/*.snapshot/**/asset.*/*.d.ts
21-
22-
!**/*.snapshot/**/asset.*/**
7+
!LICENSE
8+
!NOTICE
9+
!CONTRIBUTING.md

packages/@aws-cdk/cx-api/README.md

-193
This file was deleted.

0 commit comments

Comments
 (0)