Skip to content

Commit

Permalink
tools: fix update-eslint.sh
Browse files Browse the repository at this point in the history
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 <rtrott@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Michaël Zasso <mic.besace@gmail.com>
  • Loading branch information
MylesBorins committed Sep 20, 2017
1 parent 27b6737 commit cac4beb
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tools/update-eslint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ cd "$( dirname "${BASH_SOURCE[0]}" )"
rm -rf eslint
mkdir eslint-tmp
cd eslint-tmp
npm init --yes

npm install --global-style --no-binlinks --production eslint@latest
cd node_modules/eslint
Expand Down

0 comments on commit cac4beb

Please sign in to comment.