-
Notifications
You must be signed in to change notification settings - Fork 903
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
fix(cli-config): include peer dependencies when finding dependencies #2423
fix(cli-config): include peer dependencies when finding dependencies #2423
Conversation
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.
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. |
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.
Thanks for clarification! 👍
Summary:
config
currently ignorespeerDependencies
and instead readsdevDependencies
, leading to missing dependencies.Resolves #2419.
Test Plan:
In any project, run the following:
Checklist