Add support for catalog references in peer dependencies#6926
Add support for catalog references in peer dependencies#6926WooWan wants to merge 6 commits intoyarnpkg:masterfrom
Conversation
|
Hi, |
|
I'm not certain that's correct - afaik the |
I'm not very familiar with reduceDependency, do you think the fundamental solution would be to fix reduceDependency so that it iterates over peerDependencies as well? |
|
Hey, |
|
I've been busy and haven't been able to get to the PR. I'll work on it by next weekend! |
|
@arcanis @MKruschke Hello! I've added a reducePeerDependency hook and test code. Verified that it works. Happy to get a review! |
What's the problem this PR addresses?
Fixes: #6925
Adds support for
catalog:protocol inpeerDependencies. Previously, catalog references in peer dependencies were incorrectly reported. This change allows catalog references to be used in peerdependencies, consistent with their support in other dependency types.
...
How did you fix it?
Updated the dependency range validation logic in
Manifest.tsto treatcatalog:protocol as a valid range format. This prevents catalog references from beingflagged as errors when used in peer dependencies.
...
Checklist