From 9bbc793d4e7cbb9fb5c4d858ea19e15444ac111d 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. --- tools/update-babel-eslint.sh | 2 +- tools/update-eslint.sh | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tools/update-babel-eslint.sh b/tools/update-babel-eslint.sh index f2cadbd2297339..6c48083736116a 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@latest @babel/plugin-syntax-import-assertions@latest # 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..a1ac3b37340f32 100755 --- a/tools/update-eslint.sh +++ b/tools/update-eslint.sh @@ -20,8 +20,8 @@ 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@latest + "$NODE" "$NPM" install --global-style --no-bin-links --ignore-scripts --no-package-lock eslint-plugin-markdown@latest # Use dmn to remove some unneeded files. "$NODE" "$NPM" exec -- dmn@2.2.2 -f clean