Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adjust patches and cdklocal script for esbuild bundled package #60

Merged
merged 4 commits into from Mar 2, 2022

Conversation

whummer
Copy link
Member

@whummer whummer commented Mar 2, 2022

Adjust patches and cdklocal script for esbuild bundled package. Addresses #59

The CDK build has recently (v2.14.0 and above) switched from a regular build with runtime dependencies to a packaged build using esbuild. More details here: aws/aws-cdk#18667

This PR separates the patches from the code imports, splits up the patches into separate functions, and then passes the imported libs to the patch functions. This allows us to apply the patches to v2.14.0+, as well as use a fallback mechanism for older CDK versions.

Copy link
Member

@dominikschubert dominikschubert left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 🚀

successfully tested bootstrapping with both aws-cdk 2.13.0 and 2.15.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants