Repository navigation
Repair wp/5.7 branch Actions: Omit WordPress dependencies when scaffolding in the Create Block check - #84787
Conversation
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the ⚙️ Run configuration
You can disable this status message by setting the Use the checkbox below for a quick retry:
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
Size Change: 0 B Total Size: 1.37 MB ℹ️ View Unchanged
|
|
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. |
2d56c7a to
32e8317
Compare
32e8317 to
e37fc43
Compare
ntsekouras
left a comment
There was a problem hiding this comment.
LGTM, thanks! Scaffolding no longer installs the latest @wordpress/* packages, so the Create Block check passes on Node.js 14.
e37fc43 to
582b7c0
Compare
Part of #82936.
What?
Ports the parts of #37639 (2294dee) that the Create Block check needs, so
@wordpress/create-blockno longer installs the latest@wordpress/block-editor,@wordpress/blocksand@wordpress/i18nreleases when scaffolding a block:esnexttemplate and@wordpress/create-block-tutorial-templateno longer listnpmDependencies.packages/create-block/lib/init-package-json.jsonly installs a template'snpmDependencieswhenwp-scriptsis being set up.@wordpress/eslint-plugin'srecommended-with-formattingconfig ignores@wordpress/*imports (other thaniconsandinterface) forimport/no-unresolvedand marks them as internal, and the root.eslintrc.jssetsimport/internal-regextonullso the repository's own lint rules are unchanged.Why?
The Create Block check (
bin/test-create-block.sh) fails on every run on this branch. Scaffolding installs the newest releases of those packages, which now require Node.js 18.12 or newer. This branch runs Node.js 14 withengine-strict = true, so every install fails, and linting the scaffolded block then fails withimport/no-unresolvedon the three imports.How?
The trunk commit doesn't cherry-pick onto this branch:
.eslintrc.jsand several@wordpress/eslint-pluginconfigs have changed since. The changes above were applied by hand. The trunk commit's other edits to@wordpress/eslint-plugin(React version detection inreact.js, and moving settings out ofcustom.jsandrecommended.js) aren't needed to fix this and are left out, as are its CHANGELOG entries.Use of AI Tools
This PR was created by Claude Code under my supervision. All code should be treated as AI-produced and not yet reviewed by a human until this PR is marked Ready for Review.
🤖 Generated with Claude Code