-
Notifications
You must be signed in to change notification settings - Fork 2k
fix: turbo prune for pnpm patched dependencies #10430
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
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
🤖 Devin AI EngineerI'll be helping with this pull request! Here's what you should know: ✅ I will automatically:
Note: I can only respond to comments from users who have write access to this repository. ⚙️ Control Options:
|
This change adds support for: - Reading patches from pnpm-workspace.yaml in pnpm 9+ - Handling version-less patches (which apply to all versions of a package) - Properly pruning patches based on both sources Fixes #9120 Co-Authored-By: anthony.shew@vercel.com <anthonyshew@gmail.com>
Co-Authored-By: anthony.shew@vercel.com <anthonyshew@gmail.com>
1429b72
to
2ab83dc
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Small tweaks to tests, but overall this works due to pnpm
still respecting the patches section in package.json
if it is present. Future work might be pruning pnpm-workspace.yaml
Description
This PR fixes issues with
turbo prune
for pnpm monorepos that contain patched dependencies (#9120).Changes include:
pnpm-workspace.yaml
in pnpm 9+Tests
Link to Devin run: https://app.devin.ai/sessions/4b9fd6561a6a40fbac3e73507c296678
Requested by: anthony.shew@vercel.com