Skip to content

Commit

Permalink
tools: fix update-babel-eslint.sh
Browse files Browse the repository at this point in the history
Changes to the deps/npm layout in core require changes to
update-babel-eslint.sh
  • Loading branch information
Trott committed Oct 10, 2021
1 parent 8501a05 commit ada8b26
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tools/update-babel-eslint.sh
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit ada8b26

Please sign in to comment.