-
Notifications
You must be signed in to change notification settings - Fork 45
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
Update and deduplicate sub-dependencies using npx yarn-deduplicate yarn.lock
#1900
Conversation
Deployed to Cloudflare Pages
|
This comment was marked as off-topic.
This comment was marked as off-topic.
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.
LGTM, but why did this PR affect snapshot files formatting?
jest snapshots -> jest-styled-components -> @adobe/css-tools upgraded from 4.0.1 to 4.3.1 (difference starts at 4.0.2) |
|
If we blindly update deps with "highest" deduplication strategy please at least mention this in a changelog. For me it is unexpected that we bump redux in this PR for example. |
NPM hell never seem to stop amuse me. Why even having yarn.lock files, if it gets overridden by yarn-deduplicate? We can just hope that there are no bugs in the sub-sub-sub-package A caused by the common carrot version dependency in another sub-sub-package B, because A didn't test it. |
@matevz Lock file is just for reproducibility. We can delete it and reinstall from just our package.json, and that would deduplicate too, but also update all transitive dependencies to their latest valid versions. Each package still specifies which subdependecy versions it supports, e.g. But yes, even these updates within supported ranges can add bugs |
ecddafb
to
fe5bc22
Compare
npx yarn-deduplicate yarn.lock
npx yarn-deduplicate yarn.lock
Updated changelog and commit message to:
|
Used `npx yarn-deduplicate yarn.lock`. This reduces the size of node_modules and speeds up installing dependencies.
fe5bc22
to
27fb134
Compare
That's exactly what I fear yes. Mostly the carrot versioning is used in |
Assigning a few extra people, in case you want to do the same in repos you maintain
rm -rf node_modules/ && yarn install
before: 35.19 seconds , 735 MB
after: 9.28 seconds , 573 MB