Skip to content

Commit ada8b26

Browse files
committed
tools: fix update-babel-eslint.sh
Changes to the deps/npm layout in core require changes to update-babel-eslint.sh
1 parent 8501a05 commit ada8b26

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

tools/update-babel-eslint.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55
# This script must be be in the tools directory when it runs because it uses
66
# $0 to determine directories to work in.
77

8+
set -e
9+
810
cd "$( dirname "${0}" )" || exit
911
rm -rf node_modules/@babel
1012
mkdir babel-eslint-tmp
@@ -13,7 +15,7 @@ cd babel-eslint-tmp || exit
1315
ROOT="$PWD/../.."
1416
[ -z "$NODE" ] && NODE="$ROOT/out/Release/node"
1517
[ -x "$NODE" ] || NODE=`command -v node`
16-
NPM="$ROOT/deps/npm"
18+
NPM="$ROOT/deps/npm/bin/npm-cli.js"
1719

1820
"$NODE" "$NPM" init --yes
1921
"$NODE" "$NPM" install --global-style --no-bin-links --production --no-package-lock @babel/core @babel/eslint-parser@latest

0 commit comments

Comments
 (0)