From ada8b266fdd3560af5b3f1a78401a22726b06093 Mon Sep 17 00:00:00 2001 From: Rich Trott Date: Sat, 9 Oct 2021 19:42:41 -0700 Subject: [PATCH] tools: fix update-babel-eslint.sh Changes to the deps/npm layout in core require changes to update-babel-eslint.sh --- tools/update-babel-eslint.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tools/update-babel-eslint.sh b/tools/update-babel-eslint.sh index deaf8748cf252d..eb312aad80da3e 100755 --- a/tools/update-babel-eslint.sh +++ b/tools/update-babel-eslint.sh @@ -5,6 +5,8 @@ # This script must be be in the tools directory when it runs because it uses # $0 to determine directories to work in. +set -e + cd "$( dirname "${0}" )" || exit rm -rf node_modules/@babel mkdir babel-eslint-tmp @@ -13,7 +15,7 @@ cd babel-eslint-tmp || exit ROOT="$PWD/../.." [ -z "$NODE" ] && NODE="$ROOT/out/Release/node" [ -x "$NODE" ] || NODE=`command -v node` -NPM="$ROOT/deps/npm" +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