Repository navigation
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
|
npm 11's npm install rewrites the previous lockfile, which fails the Static Analysis check.
|
Size Change: 0 B Total Size: 1.63 MB ℹ️ View Unchanged
|
Matches trunk's .nvmrc. Node.js 24.20 bundles npm 11.19.
|
The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. 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. Props Bot commandsYou can trigger Props Bot actions by commenting on this PR:
|
Converted with npm 11.19.0 (Node 24.20.0):
npm install --package-lock-only --lockfile-version 3 --ignore-scripts --no-audit --no-fund
The `packages` section is unchanged; the legacy `dependencies` section is removed.
What?
Sets
.nvmrcto Node.js 24.20 onwp/6.4, as on trunk, and regeneratespackage-lock.jsonwith npm 11.Why?
The wordpress-develop 6.4 branch moves to Node.js 24 in WordPress/wordpress-develop#13841. npm 11's
npm installrewrites this branch's lockfile because nested entries such asuuid8.3.2 underpackages/annotations, which asks for^9.0.1, do not satisfy their ranges. This fails the Static Analysis check.How?
npm install --package-lock-onlywith npm 11, run twice, since the first run leaves"dev": trueon the hoisteduuid. No entry changes version or is added, and 6 are removed: the six packages that ask foruuid^9.0.1(annotations, block-library, blocks, components, core-data, e2e-tests) use the hoisted 9.0.1 instead of a nested 8.3.2. Convertspackage-lock.jsonfrom lockfile version 2 to 3 with npm 11; thepackagessection is unchanged.Testing Instructions
With Node.js 24 and npm 11:
npm ci && npm run build.Use of AI Tools
AI assistance: Yes
Tools: Claude Code
Model: Claude Opus 5.5
Used for: Regenerating the lockfile, building on Node.js 24, and drafting this description.