-
-
Notifications
You must be signed in to change notification settings - Fork 32.4k
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
[core] Deduplicate packages #16608
[core] Deduplicate packages #16608
Conversation
No bundle size changes comparing 42f78c6...e51c925 |
Can't lerna sync those? Updating dependencies should probably be handled by a bot. Though it should only run weekly given the amount of packages in the workspace. |
As far as I can tell, no.
Probably, but that isn't the goal of this PR. |
This comment has been minimized.
This comment has been minimized.
@eps1lon I've added it into the CI task and moved it away from postinstall. To deduplicate packages one can now use Example of a CI failure where there was duplicated packages: https://circleci.com/gh/mui-org/material-ui/106720?utm_campaign=vcs-integration-link&utm_medium=referral&utm_source=github-build-link |
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.
Isn't it simpler to run yarn yarn-deduplicate
in CI and check if changes occurred? Basically just move it between install and "Should not have any git not staged".
I don't see anything meaningful being done in scripts/deduplicate
Only benefit it provides locally is that it runs |
Both approaches sound OK, we had this duplication problems surface twice in the past on dependencies upgrade PR, great to see it fixed systematically. @eps1lon, your call. |
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.
Makes more sense to have all steps in a single script file. Nice job!
I have followed (at least) the PR section of the contributing guide.
Added
yarn deduplicate
which automatically deduplicates packages using yarn-deduplicate then runsyarn install
Made the CI fail if there are duplicated packages
Output: