Skip to content

Commit 0463afb

Browse files
committed
tools: fix tools/update-eslint.sh
Changes to the npm dependency in the core repo require changes to update-eslint.sh.
1 parent 92090d3 commit 0463afb

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tools/update-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 in the tools directory when it runs because it uses the
66
# script source file path to determine directories to work in.
77

8+
set -e
9+
810
cd "$( dirname "$0" )" || exit
911
rm -rf node_modules/eslint node_modules/eslint-plugin-markdown
1012
(
@@ -14,7 +16,7 @@ rm -rf node_modules/eslint node_modules/eslint-plugin-markdown
1416
ROOT="$PWD/../.."
1517
[ -z "$NODE" ] && NODE="$ROOT/out/Release/node"
1618
[ -x "$NODE" ] || NODE=`command -v node`
17-
NPM="$ROOT/deps/npm"
19+
NPM="$ROOT/deps/npm/bin/npm-cli.js"
1820

1921
"$NODE" "$NPM" init --yes
2022

0 commit comments

Comments
 (0)