Skip to content

Commit 37c43ed

Browse files
committed
tools: fix update-eslint.sh
The script currently assumes that there is a package.json in `eslint-tmp`. If there isn't the logic of the script fails. This adds a call to `npm init --yes` ensuring there is a package.json and that the script can do it's thing. PR-URL: #14850 Reviewed-By: Rich Trott <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Michaël Zasso <[email protected]>
1 parent 050a224 commit 37c43ed

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tools/update-eslint.sh

+1
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ cd "$( dirname "${BASH_SOURCE[0]}" )"
1111
rm -rf eslint
1212
mkdir eslint-tmp
1313
cd eslint-tmp
14+
npm init --yes
1415

1516
npm install --global-style --no-bin-links --production eslint@latest
1617
cd node_modules/eslint

0 commit comments

Comments
 (0)