Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
20
24.18
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ You will need Node and npm installed on your computer. Node is a JavaScript runt

If you are not using a package manager, see the [Node.js download page](https://nodejs.org/en/download/) for installers and binaries.

**Note:** WordPress currently only officially supports Node.js `20.x` and npm `10.x`.
**Note:** WordPress currently only officially supports Node.js `24.x` and npm `11.x`.

You will also need a container environment such as [Docker Desktop](https://www.docker.com/products/docker-desktop) installed and running on your computer. The container environment is the virtualization software that powers the local development environment and can be installed just like any other regular application.

Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

20 changes: 10 additions & 10 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
"ghcrRepo": "WordPress/gutenberg/gutenberg-wp-develop-build"
},
"engines": {
"node": ">=20.10.0",
"npm": ">=10.2.3"
"node": ">=24.18.0",
"npm": ">=11.16.0"
},
"author": "The WordPress Contributors",
"license": "GPL-2.0-or-later",
Expand Down Expand Up @@ -115,13 +115,13 @@
"wicg-inert": "3.1.3"
},
"scripts": {
"build": "grunt build",
"build:dev": "grunt build --dev",
"build:gutenberg": "grunt build:gutenberg",
"dev": "grunt watch --dev",
"test": "grunt test",
"watch": "grunt watch",
"grunt": "grunt",
"build": "node --no-maglev --no-concurrent-sparkplug node_modules/grunt/bin/grunt build",
"build:dev": "node --no-maglev --no-concurrent-sparkplug node_modules/grunt/bin/grunt build --dev",
"build:gutenberg": "node --no-maglev --no-concurrent-sparkplug node_modules/grunt/bin/grunt build:gutenberg",
"dev": "node --no-maglev --no-concurrent-sparkplug node_modules/grunt/bin/grunt watch --dev",
"test": "node --no-maglev --no-concurrent-sparkplug node_modules/grunt/bin/grunt test",
"watch": "node --no-maglev --no-concurrent-sparkplug node_modules/grunt/bin/grunt watch",
"grunt": "node --no-maglev --no-concurrent-sparkplug node_modules/grunt/bin/grunt",
"lint:jsdoc": "wp-scripts lint-js",
"lint:jsdoc:fix": "wp-scripts lint-js --fix",
"typecheck:js": "tsc --build",
Expand All @@ -143,6 +143,6 @@
"typecheck:php": "node ./tools/local-env/scripts/docker.js run --rm php composer phpstan",
"gutenberg:copy": "node tools/gutenberg/copy.js",
"gutenberg:verify": "node tools/gutenberg/utils.js",
"gutenberg:download": "node tools/gutenberg/download.js && grunt build:gutenberg"
"gutenberg:download": "node tools/gutenberg/download.js && npm run build:gutenberg"
}
}
4 changes: 2 additions & 2 deletions src/wp-content/themes/twentytwentyfive/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions src/wp-content/themes/twentytwentyfive/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@
},
"homepage": "https://wordpress.org/themes/twentytwentyfive/",
"engines": {
"node": ">=20.10.0",
"npm": ">=10.2.3"
"node": ">=24.18.0",
"npm": ">=11.16.0"
},
"devDependencies": {
"@wordpress/browserslist-config": "^6.34.0",
Expand Down
4 changes: 2 additions & 2 deletions src/wp-content/themes/twentytwentyone/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions src/wp-content/themes/twentytwentyone/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@
},
"homepage": "https://wordpress.org/themes/twentytwentyone/",
"engines": {
"node": ">=20.10.0",
"npm": ">=10.2.3"
"node": ">=24.18.0",
"npm": ">=11.16.0"
},
"devDependencies": {
"@wordpress/browserslist-config": "^6.34.0",
Expand Down
4 changes: 2 additions & 2 deletions src/wp-content/themes/twentytwentytwo/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions src/wp-content/themes/twentytwentytwo/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@
},
"homepage": "https://wordpress.org/themes/twentytwentytwo/",
"engines": {
"node": ">=20.10.0",
"npm": ">=10.2.3"
"node": ">=24.18.0",
"npm": ">=11.16.0"
},
"devDependencies": {
"@wordpress/browserslist-config": "^6.34.0",
Expand Down
2 changes: 1 addition & 1 deletion tools/gutenberg/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ function downloadGutenberg() {
process.exit( downloadResult.status ?? 1 );
}

const buildResult = spawnSync( 'grunt', [ 'build:gutenberg' ], { stdio: 'inherit', shell: true } );
const buildResult = spawnSync( 'npm', [ 'run', 'build:gutenberg' ], { stdio: 'inherit', shell: true } );
if ( buildResult.status !== 0 ) {
process.exit( buildResult.status ?? 1 );
}
Expand Down
Loading