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(core): fix lockfile remapping for yarn berry with aliases #17853

Merged
merged 1 commit into from
Jun 29, 2023

Conversation

meeroslav
Copy link
Contributor

@meeroslav meeroslav commented Jun 29, 2023

Current Behavior

Pruned lock file remapping from the original lock file is failing if we import only the alias package, but not the full package

e.g. we import string-width-cjs (which is an alias to string-width) but not string-width.

Removal of the keys would fail as string-width would not be found in the pruned graph.

Expected Behavior

Lock file generation should succeed even if someone imports an alias over the standard package name.

Related Issue(s)

Fixes #17440
Fixes #17816

@meeroslav meeroslav self-assigned this Jun 29, 2023
@meeroslav meeroslav requested a review from a team as a code owner June 29, 2023 11:38
@meeroslav meeroslav requested a review from vsavkin June 29, 2023 11:38
@vercel
Copy link

vercel bot commented Jun 29, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
nx-dev ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 29, 2023 11:42am

@nx-cloud
Copy link

nx-cloud bot commented Jun 29, 2023

☁️ Nx Cloud Report

CI is running/has finished running commands for commit 06cd747. As they complete they will appear below. Click to see the status, the terminal output, and the build insights.

📂 See all runs for this branch


✅ Successfully ran 1 target

Sent with 💌 from NxCloud.

@FrozenPandaz FrozenPandaz merged commit cfe1fa0 into nrwl:master Jun 29, 2023
3 checks passed
FrozenPandaz pushed a commit that referenced this pull request Jun 29, 2023
@github-actions
Copy link

github-actions bot commented Jul 5, 2023

This pull request has already been merged/closed. If you experience issues related to these changes, please open a new issue referencing this pull request.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jul 5, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Error while creating pruned lockfile Yarn Berry generateLockfile error
2 participants