From 6b6fb8367388eb8c851358e9b9466092804ded22 Mon Sep 17 00:00:00 2001 From: Rich Trott Date: Fri, 29 Oct 2021 22:24:05 -0700 Subject: [PATCH] tools: improve update scripts The --production flag has no effect in this situation. Remove it. Add --ignore-scripts as a precaution. PR-URL: https://github.com/nodejs/node/pull/40644 Reviewed-By: Antoine du Hamel --- tools/update-babel-eslint.sh | 2 +- tools/update-eslint.sh | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/tools/update-babel-eslint.sh b/tools/update-babel-eslint.sh index f2cadbd2297339..fa6c0b0ee41546 100755 --- a/tools/update-babel-eslint.sh +++ b/tools/update-babel-eslint.sh @@ -18,7 +18,7 @@ ROOT="$PWD/../.." NPM="$ROOT/deps/npm/bin/npm-cli.js" "$NODE" "$NPM" init --yes -"$NODE" "$NPM" install --global-style --no-bin-links --production --no-package-lock @babel/core @babel/eslint-parser@latest @babel/plugin-syntax-import-assertions@latest +"$NODE" "$NPM" install --global-style --no-bin-links --ignore-scripts --no-package-lock @babel/core @babel/eslint-parser @babel/plugin-syntax-import-assertions # Use dmn to remove some unneeded files. "$NODE" "$NPM" exec -- dmn@2.2.2 -f clean diff --git a/tools/update-eslint.sh b/tools/update-eslint.sh index 8c9e5257edd3a8..5f87680597fb18 100755 --- a/tools/update-eslint.sh +++ b/tools/update-eslint.sh @@ -20,8 +20,7 @@ rm -rf node_modules/eslint node_modules/eslint-plugin-markdown "$NODE" "$NPM" init --yes - "$NODE" "$NPM" install --global-style --no-bin-links --production --no-package-lock eslint@latest - "$NODE" "$NPM" install --global-style --no-bin-links --production --no-package-lock eslint-plugin-markdown@latest + "$NODE" "$NPM" install --global-style --no-bin-links --ignore-scripts --no-package-lock eslint eslint-plugin-markdown # Use dmn to remove some unneeded files. "$NODE" "$NPM" exec -- dmn@2.2.2 -f clean