Skip to content

Commit

Permalink
chore: fix bump running out of memory (#24983)
Browse files Browse the repository at this point in the history
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*
  • Loading branch information
rix0rrr authored Apr 11, 2023
1 parent 55621ad commit 11f4ede
Show file tree
Hide file tree
Showing 97 changed files with 112 additions and 4,660 deletions.
2 changes: 1 addition & 1 deletion bump.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,4 @@ if [[ "${LEGACY_BUMP:-}" == "" ]]; then
# if we're using 'cdk-release' for the bump, build that package, including all of its dependencies
npx lerna run build --include-dependencies --scope @aws-cdk/cdk-release
fi
${scriptdir}/scripts/bump.js ${1:-minor}
VERBOSE=1 exec ${scriptdir}/scripts/bump.js ${1:-minor}
1 change: 0 additions & 1 deletion packages/@aws-cdk/cloud-assembly-schema/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@
"build+test+package": "yarn build+test && yarn package",
"build+test": "yarn build && yarn test",
"compat": "cdk-compat",
"update-schema": "bash scripts/update-schema.sh",
"rosetta:extract": "yarn --silent jsii-rosetta extract",
"build+extract": "yarn build && yarn rosetta:extract",
"build+test+extract": "yarn build+test && yarn rosetta:extract"
Expand Down
29 changes: 8 additions & 21 deletions packages/@aws-cdk/cx-api/.gitignore
Original file line number Diff line number Diff line change
@@ -1,22 +1,9 @@
*.js
*.js.map
*.d.ts
node_modules
dist
tsconfig.json
.jsii

.LAST_BUILD
.LAST_PACKAGE
*.snk
.nyc_output
coverage
nyc.config.js
!.eslintrc.js
# This package is copied from aws-cdk-lib/cloud-assembly-schema, ignore everything
# except package.json
*
!package.json
!.npmignore
!jest.config.js

junit.xml
!**/*.snapshot/**/asset.*/*.js
!**/*.snapshot/**/asset.*/*.d.ts

!**/*.snapshot/**/asset.*/**
!LICENSE
!NOTICE
!CONTRIBUTING.md
193 changes: 0 additions & 193 deletions packages/@aws-cdk/cx-api/README.md

This file was deleted.

Loading

0 comments on commit 11f4ede

Please sign in to comment.