-
Notifications
You must be signed in to change notification settings - Fork 798
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
Dependencies: Deduplicate @wordpress/
packages
#17559
Conversation
Caution: This PR has changes that must be merged to WordPress.com |
Hold on, I'll try just deduplicating |
@wordpress/
packages
55f4036
to
26a81d2
Compare
Scheduled Jetpack release: November 10, 2020. E2E results is available here (for debugging purposes): https://jetpack-e2e-dashboard.herokuapp.com/pr-17559 Thank you for the great PR description! When this PR is ready for review, please apply the |
26a81d2
to
346d5db
Compare
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.
This looks good. Let's merge it right now so it gets tested by everyone in the next few weeks.
How can we ensure that duplications don't happen again next time we update packages?
r215724-wpcom |
I'm not entirely sure TBH. @scinos might know 😄 |
AFAIK it is not possible. By design, If we can achieve total deduplication then we could add a new CI job to run |
We plan to re-declare many dependencies in the Gutenberg monorepo as peer dependencies: WordPress/gutenberg#8981 (comment) The proposal was discussed in a core-js chat this week and will most likely be implemented. That doesn't solve everything, but will prevent yarn/npm from installing duplicate packages where it's obviously undesired, and will make them issue a warning instead. |
Follow-up to #16845 (comment), where @jsnajdr suggested de-duplicating dependencies in
yarn.lock
, which had been blocking #16845.Changes proposed in this Pull Request:
Deduplicate dependencies in
yarn.lock
by usingyarn-deduplicate
This is the first time I'm using this, hope I'm doing it right 🤞
Jetpack product discussion
N/A
Does this pull request change what data or activity we track or use?
No
Testing instructions:
Verify that things still work as before (check CI, do sufficient smoke testing).
Proposed changelog entry for your changes:
Deduplicate
@wordpress/
dependencies