Build/Test Tools: Remove npx commands in 6.4 - #13113
Conversation
Test using WordPress PlaygroundThe changes in this pull request can previewed and tested using a WordPress Playground instance. WordPress Playground is an experimental project that creates a full WordPress instance entirely within the browser. Some things to be aware of
For more details about these limitations and more, check out the Limitations page in the WordPress Playground documentation. |
npx commands.Backport of r63309 to the 6.4 branch.
06b39a5 to
edb0f62
Compare
|
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 Core Committers: Use this line as a base for the props when committing in SVN: To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook. |
Backport of r63309 to the
6.4branch, already in trunk via #13021. It replaces the two remainingnpxcalls withnpm exec --no, which runs an installed binary only instead of first downloading and installing a missing package and its dependencies.Trac ticket: https://core.trac.wordpress.org/ticket/65864
Testing Instructions
Both Grunt tasks are manual release-lead tools. No workflow runs them, so check them locally.
npm ci. It completes without errors.npm exec --offline --no -- update-browserslist-db --help. It prints the tool's usage text.--offlineproves the binary comes fromnode_modules, not the registry.npm exec --offline --no -- wp-scripts --help. The localwp-scriptsbinary printsScript name is missing.npm ls update-browserslist-db. It lists the package as a direct dependency, and again underbrowserslistas deduped.npm exec --no -- a-package-that-is-not-installed. The command fails and installs nothing.Use of AI Tools
AI assistance: Yes — Claude Code (Claude Opus 5) applied r63309 to
6.4and verified the changeset.This Pull Request is for code review only. Please keep all other discussion in the Trac ticket. Do not merge this Pull Request. See GitHub Pull Requests for Code Review in the Core Handbook for more details.