Skip to content

Commit 30623c2

Browse files
Trotttargos
authored andcommitted
tools: improve update scripts
The --production flag has no effect in this situation. Remove it. Add --ignore-scripts as a precaution. PR-URL: #40644 Reviewed-By: Antoine du Hamel <[email protected]>
1 parent 51ac59b commit 30623c2

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

tools/update-babel-eslint.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ ROOT="$PWD/../.."
1818
NPM="$ROOT/deps/npm/bin/npm-cli.js"
1919

2020
"$NODE" "$NPM" init --yes
21-
"$NODE" "$NPM" install --global-style --no-bin-links --production --no-package-lock @babel/core @babel/eslint-parser@latest @babel/plugin-syntax-import-assertions@latest
21+
"$NODE" "$NPM" install --global-style --no-bin-links --ignore-scripts --no-package-lock @babel/core @babel/eslint-parser @babel/plugin-syntax-import-assertions
2222

2323
# Use dmn to remove some unneeded files.
2424
"$NODE" "$NPM" exec -- [email protected] -f clean

tools/update-eslint.sh

+1-2
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,7 @@ rm -rf node_modules/eslint node_modules/eslint-plugin-markdown
2020

2121
"$NODE" "$NPM" init --yes
2222

23-
"$NODE" "$NPM" install --global-style --no-bin-links --production --no-package-lock eslint@latest
24-
"$NODE" "$NPM" install --global-style --no-bin-links --production --no-package-lock eslint-plugin-markdown@latest
23+
"$NODE" "$NPM" install --global-style --no-bin-links --ignore-scripts --no-package-lock eslint eslint-plugin-markdown
2524

2625
# Use dmn to remove some unneeded files.
2726
"$NODE" "$NPM" exec -- [email protected] -f clean

0 commit comments

Comments
 (0)