Skip to content

Commit dfa1f42

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

9 files changed

Lines changed: 34 additions & 10 deletions

File tree

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# fail the install on any dependency script not covered by allowScripts in package.json
2+
strict-allow-scripts = true
3+
# npm v12 already refuses git and remote URL dependencies; extend that to local tarballs
4+
allow-file = none

‎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: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
"homepage": "https://wordpress.org/themes/twentytwentyfive/",
1515
"engines": {
1616
"node": ">=24.18.0",
17-
"npm": ">=11.16.0"
17+
"npm": ">=12.2.0"
1818
},
1919
"devEngines": {
2020
"runtime": {
@@ -23,7 +23,7 @@
2323
},
2424
"packageManager": {
2525
"name": "npm",
26-
"version": ">=11.16.0",
26+
"version": ">=12.2.0",
2727
"onFail": "error"
2828
}
2929
},
@@ -39,5 +39,8 @@
3939
"scripts": {
4040
"build": "postcss style.css --use cssnano -o style.min.css --no-map",
4141
"watch": "postcss style.css --use cssnano -o style.min.css --no-map --watch"
42+
},
43+
"allowScripts": {
44+
"fsevents": false
4245
}
4346
}
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: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
"homepage": "https://wordpress.org/themes/twentytwentyone/",
1515
"engines": {
1616
"node": ">=24.18.0",
17-
"npm": ">=11.16.0"
17+
"npm": ">=12.2.0"
1818
},
1919
"devEngines": {
2020
"runtime": {
@@ -23,7 +23,7 @@
2323
},
2424
"packageManager": {
2525
"name": "npm",
26-
"version": ">=11.16.0",
26+
"version": ">=12.2.0",
2727
"onFail": "error"
2828
}
2929
},
@@ -80,5 +80,11 @@
8080
"watch": "chokidar \"**/*.scss\" -c \"npm run build\" --initial",
8181
"lint:scss": "stylelint **/*.scss",
8282
"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
8389
}
8490
}
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# fail the install on any dependency script not covered by allowScripts in package.json
2+
strict-allow-scripts = true
3+
# npm v12 already refuses git and remote URL dependencies; extend that to local tarballs
4+
allow-file = none

‎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: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
"homepage": "https://wordpress.org/themes/twentytwentytwo/",
1515
"engines": {
1616
"node": ">=24.18.0",
17-
"npm": ">=11.16.0"
17+
"npm": ">=12.2.0"
1818
},
1919
"devEngines": {
2020
"runtime": {
@@ -23,7 +23,7 @@
2323
},
2424
"packageManager": {
2525
"name": "npm",
26-
"version": ">=11.16.0",
26+
"version": ">=12.2.0",
2727
"onFail": "error"
2828
}
2929
},
@@ -39,5 +39,8 @@
3939
"scripts": {
4040
"build": "postcss style.css --use cssnano -o style.min.css --no-map",
4141
"watch": "postcss style.css --use cssnano -o style.min.css --no-map --watch"
42-
}
42+
},
43+
"allowScripts": {
44+
"fsevents": false
45+
}
4346
}

0 commit comments

Comments
 (0)