-
Notifications
You must be signed in to change notification settings - Fork 1
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
Deprecate helper-npm-install-peer-deps #7
Comments
This sounds good to me. Am I right in thinking that most projects currently aren't installing peer deps from this hack (i.e. is |
The peer deps helper was installing any missing peer deps and then npm update was run in the next step, which was removing the peer deps that were just installed as they were extraneous. I fixed that in our CircleCI config templates here so that these extraneous packages are left alone: https://github.com/Financial-Times/n-circle2-cli/pull/11. The work I'm proposing above is a follow on from this. Regarding
(from a Slack chat) Fixed by removing |
Okay that sounds good. I guess I was mainly checking that we weren't going to suddenly break hundreds of builds. If it's just the odd couple that have to fix their deps that's fine. |
I think if I upgrade After running
|
Yeah, I'm pretty sure this won't break hundreds of builds, but that's why I want to take it one step at a time to see how things look before fully deprecating the |
Projects should have a dependency on packages in their
package.json
that arepeerDependencies
of other packages that the project has a dependency on. By auto-magically installing packages thatnpm ls
flags as missing peer dependencies, we're masking the problem of incompletepackage.json
files and discouraging developers from improving their understanding of peer dependencies.To remedy this, I propose that we:
n-gage
dependencies foreslint
andstylelint
helper-npm-install-peer-deps
The text was updated successfully, but these errors were encountered: