这是indexloc提供的服务,不要输入任何密码
Skip to content

fix: prune should omit descriptors from peerDependencies #2269

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

Merged
merged 6 commits into from
Oct 26, 2022

Conversation

chris-olszewski
Copy link
Member

Partially addresses #2049

Yarn 2+ doesn't expect descriptors that appear in peerDependencies to be kept. This behavior only manifested in a lockfile where a pruned package had a normal dependency descriptor that also appeared as a peer dependency descriptor in a package that wasn't pruned. As background "descriptor" is the term Yarn uses for a semver range that appears in a package.json or lockfile entry.

Amended the minimal berry lockfile to now test that we don't keep around descriptors even if they appear in peerDependencies.

@vercel
Copy link

vercel bot commented Oct 18, 2022

@chris-olszewski is attempting to deploy a commit to the Vercel Team on Vercel.

A member of the Team first needs to authorize it.

@vercel
Copy link

vercel bot commented Oct 18, 2022

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

Name Status Preview Comments Updated
turbo-site ✅ Ready (Inspect) Visit Preview 💬 Add your feedback Oct 26, 2022 at 4:47PM (UTC)
5 Ignored Deployments
Name Status Preview Comments Updated
examples-basic-web ⬜️ Ignored (Inspect) Visit Preview Oct 26, 2022 at 4:47PM (UTC)
examples-designsystem-docs ⬜️ Ignored (Inspect) Visit Preview Oct 26, 2022 at 4:47PM (UTC)
examples-kitchensink-blog ⬜️ Ignored (Inspect) Visit Preview Oct 26, 2022 at 4:47PM (UTC)
examples-native-web ⬜️ Ignored (Inspect) Visit Preview Oct 26, 2022 at 4:47PM (UTC)
examples-svelte-web ⬜️ Ignored (Inspect) Visit Preview Oct 26, 2022 at 4:47PM (UTC)

@chris-olszewski chris-olszewski marked this pull request as ready for review October 18, 2022 22:44
@chris-olszewski chris-olszewski requested a review from a team as a code owner October 18, 2022 22:44
@NicholasLYang NicholasLYang added the pr: automerge Kodiak will merge these automatically after checks pass label Oct 26, 2022
@kodiakhq kodiakhq bot merged commit a931fb5 into vercel:main Oct 26, 2022
@chris-olszewski chris-olszewski deleted the fix_berry_prune_mismatch branch October 28, 2022 18:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pr: automerge Kodiak will merge these automatically after checks pass
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants