Skip to content

Commit 06e8034

Browse files
committed
Bundled Themes: Upgrade npm to v12 for themes with a build process.
1 parent cb6d462 commit 06e8034

7 files changed

Lines changed: 56 additions & 7 deletions

File tree

‎src/wp-content/themes/twentytwentyfive/package-lock.json‎

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎src/wp-content/themes/twentytwentyfive/package.json‎

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,18 @@
1414
"homepage": "https://wordpress.org/themes/twentytwentyfive/",
1515
"engines": {
1616
"node": ">=24.18.0",
17-
"npm": ">=11.16.0"
17+
"npm": ">=12.0.2"
18+
},
19+
"devEngines": {
20+
"runtime": {
21+
"name": "node",
22+
"version": ">=24.18.0"
23+
},
24+
"packageManager": {
25+
"name": "npm",
26+
"version": ">=12.0.2",
27+
"onFail": "error"
28+
}
1829
},
1930
"devDependencies": {
2031
"@wordpress/browserslist-config": "^6.34.0",
@@ -28,5 +39,8 @@
2839
"scripts": {
2940
"build": "postcss style.css --use cssnano -o style.min.css --no-map",
3041
"watch": "postcss style.css --use cssnano -o style.min.css --no-map --watch"
42+
},
43+
"allowScripts": {
44+
"fsevents": false
3145
}
3246
}
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,5 @@
11
legacy-peer-deps = true
2+
# fail the install on any dependency script not covered by allowScripts in package.json
3+
strict-allow-scripts = true
4+
# npm v12 already refuses git and remote URL dependencies; extend that to local tarballs
5+
allow-file = none

‎src/wp-content/themes/twentytwentyone/package-lock.json‎

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎src/wp-content/themes/twentytwentyone/package.json‎

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,18 @@
1414
"homepage": "https://wordpress.org/themes/twentytwentyone/",
1515
"engines": {
1616
"node": ">=24.18.0",
17-
"npm": ">=11.16.0"
17+
"npm": ">=12.0.2"
18+
},
19+
"devEngines": {
20+
"runtime": {
21+
"name": "node",
22+
"version": ">=24.18.0"
23+
},
24+
"packageManager": {
25+
"name": "npm",
26+
"version": ">=12.0.2",
27+
"onFail": "error"
28+
}
1829
},
1930
"devDependencies": {
2031
"@wordpress/browserslist-config": "^6.34.0",
@@ -69,5 +80,11 @@
6980
"watch": "chokidar \"**/*.scss\" -c \"npm run build\" --initial",
7081
"lint:scss": "stylelint **/*.scss",
7182
"lint-fix:scss": "stylelint **/*.scss --fix"
83+
},
84+
"allowScripts": {
85+
"@parcel/watcher": false,
86+
"core-js": false,
87+
"core-js-pure": false,
88+
"fsevents": false
7289
}
7390
}

‎src/wp-content/themes/twentytwentytwo/package-lock.json‎

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎src/wp-content/themes/twentytwentytwo/package.json‎

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,18 @@
1414
"homepage": "https://wordpress.org/themes/twentytwentytwo/",
1515
"engines": {
1616
"node": ">=24.18.0",
17-
"npm": ">=11.16.0"
17+
"npm": ">=12.0.2"
18+
},
19+
"devEngines": {
20+
"runtime": {
21+
"name": "node",
22+
"version": ">=24.18.0"
23+
},
24+
"packageManager": {
25+
"name": "npm",
26+
"version": ">=12.0.2",
27+
"onFail": "error"
28+
}
1829
},
1930
"devDependencies": {
2031
"@wordpress/browserslist-config": "^6.34.0",
@@ -28,5 +39,8 @@
2839
"scripts": {
2940
"build": "postcss style.css --use cssnano -o style.min.css --no-map",
3041
"watch": "postcss style.css --use cssnano -o style.min.css --no-map --watch"
31-
}
42+
},
43+
"allowScripts": {
44+
"fsevents": false
45+
}
3246
}

0 commit comments

Comments
 (0)