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

fix: use pnpm deploy to pack against to ensure all bundled dependenci… #756

Merged
merged 1 commit into from
Apr 17, 2024

Conversation

agdimech
Copy link
Contributor

@agdimech agdimech commented Apr 15, 2024

Bundled dependencies were not being included correctly due to some janky linking code that didn't handle multiple versions of the same package.

With the release of pnpm deploy we can simply now deploy a fresh copy of the package to a new directory by hoisting the dependencies and and pack from there which correctly creates an 'npm-like' nested node_modules. As you can see below, chalk@2.4.2 is nested underneath the @babel/highlight package whilst the chalk@4.1.2 is available at the root of node_modules.

Screenshot 2024-04-15 at 2 18 11 pm

Fixes #755

Copy link
Contributor

@martenpayne martenpayne left a comment

Choose a reason for hiding this comment

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

👍 looks good

@agdimech agdimech merged commit 2097de2 into mainline Apr 17, 2024
3 checks passed
@agdimech agdimech deleted the fix/755 branch April 17, 2024 10:43
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.

[BUG] npm ci fails after installing @aws/pdk
3 participants