-
-
Notifications
You must be signed in to change notification settings - Fork 1k
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
feat: enhance peer dependency rules #4876
feat: enhance peer dependency rules #4876
Conversation
💖 Thanks for opening this pull request! 💖 |
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.
Add changesets
@zkochan Thanks for your follow-up on this - let me know if you need anything else from me to move ahead with this. |
Congrats on merging your first pull request! 🎉🎉🎉 |
Issue
Ref #4835
Summary
This PR adds two enhancements to
peerDependencyRules
:ignoreMissing
support with pattern matchingignoreVersion
field to peer dependency rules which will allow any version of a given peer dependency (also pattern-matched) to exist. Pnpm already supports this with exhaustively listed dependencies and a "*" for allowed version, so this field adds comparable functionality to theignoreMissing
above with a pattern-matched list.Justification
This should allow pnpm greater control of peer dependency warnings without encouraging silencing warnings with something like a "silence all warnings" flag, as discussed in the issue. Users will have greater flexibility on which peer warnings (dependency missing or version-related) that they ignore and reduce noise.
Open to any feedback. Thanks for having a look.