-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Use npm workspaces for packages (second attempt) #66272
Conversation
Size Change: +77 B (0%) Total Size: 1.81 MB
ℹ️ View Unchanged
|
Revert of the revert 😄 Let me know when to approve it again. |
There was a strange failure on CI while this was on trunk: https://github.com/WordPress/gutenberg/actions/runs/11435991643/job/31813748278 |
86e48fd
to
b29b5cc
Compare
In the pull-request-automation workflow we hit this issue:
I think we should just use a single |
216ddb1
to
39b8690
Compare
There's an unrelated static analysis failure currently on trunk being fixed in #66316. You can see pull-request-automation passing on this branch here: https://github.com/WordPress/gutenberg/actions/runs/11459079724/job/31882816645?pr=66272 (this was a problem on trunk when this landed before). |
The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message.
To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook. |
}, | ||
"wpScript": true |
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 was not in the original PR, this package was added in the interim in #64845.
Flaky tests detected in daf1d66. 🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/11459264095
|
daf1d66
to
ab683b8
Compare
This reverts commit 5e3d247.
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.
Let's try again 🚢
ab683b8
to
baa1899
Compare
Document recent changes to the build system that change are requirements for publishing WordPress scripts and script modules. #65064 updated the way that script modules from packages are bundled for Gutenberg and WordPress. #66272 updated the way that scripts from packages are bundled for Gutenberg and WordPress. --------- Co-authored-by: sirreal <jonsurrell@git.wordpress.org> Co-authored-by: gziolo <gziolo@git.wordpress.org> Co-authored-by: justintadlock <greenshady@git.wordpress.org> Co-authored-by: youknowriad <youknowriad@git.wordpress.org>
Linking interesting follow-up conversation: #66428 (comment) |
Update package management to use npm workspaces instead of lerna. Lerna is obsolete for many repository management operations, such as dependency installation or script running. All of these are supported by npm now. Lerna continues to be used for publishing flows to ensure the appropriate dependencies are updated and published with the correct versions. The hope is that this simplfies dependendy management and maintains a more sane dependency tree. Dependency management has become increasingly difficult as Gutenberg has grown. --- This was originally merged in 4693c0f. It was reverted in order to merge it at a more time. --- Co-authored-by: t-hamano wildworks@git.wordpress.org Co-authored-by: sirreal jonsurrell@git.wordpress.org Co-authored-by: gziolo gziolo@git.wordpress.org Co-authored-by: ciampo mciampini@git.wordpress.org Co-authored-by: jsnajdr jsnajdr@git.wordpress.org Co-authored-by: yusuke-omae omaeyusuke@git.wordpress.org Co-authored-by: kevin940726 kevin940726@git.wordpress.org
…ress#66428) Document recent changes to the build system that change are requirements for publishing WordPress scripts and script modules. WordPress#65064 updated the way that script modules from packages are bundled for Gutenberg and WordPress. WordPress#66272 updated the way that scripts from packages are bundled for Gutenberg and WordPress. --------- Co-authored-by: sirreal <jonsurrell@git.wordpress.org> Co-authored-by: gziolo <gziolo@git.wordpress.org> Co-authored-by: justintadlock <greenshady@git.wordpress.org> Co-authored-by: youknowriad <youknowriad@git.wordpress.org>
Update package management to use npm workspaces. Originally in #65681, reverted for timing reasons.
#66314 should have fixed an issue on CI observed while the original PR was merged to trunk.
From 4693c0f: