fix(cli-config): include peer dependencies when finding dependencies#2423
Conversation
szymonrybczak
left a comment
There was a problem hiding this comment.
Thank you! Maybe let's add some tests? :)
|
I was trying to test it, but couldn't see any change in the |
The repro steps include running |
|
@TMisiukiewicz: Anything I can help with to move this forward? |
|
@tido64 I just want to clarify, what if you use a package manager that does not install peer dependencies automatically e.g. yarn classic? It would probably still not resolve the dependency properly? |
That isn't the issue here though? The issue is that the config algorithm doesn't consider And to answer your question: IIRC, if a peer dependency is not installed (in case of Yarn classic, or maybe it's optional), CLI fails to resolve it and it is ignored. |
TMisiukiewicz
left a comment
There was a problem hiding this comment.
Thanks for clarification! 👍
Summary:
configcurrently ignorespeerDependenciesand instead readsdevDependencies, leading to missing dependencies.Resolves #2419.
Test Plan:
In any project, run the following:
Checklist