From cac4beb7649a36326fbe194c4a0d1c5b62530c72 Mon Sep 17 00:00:00 2001 From: Myles Borins Date: Wed, 16 Aug 2017 00:03:45 -0700 Subject: [PATCH] tools: fix update-eslint.sh MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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: https://github.com/nodejs/node/pull/14850 Reviewed-By: Rich Trott Reviewed-By: Colin Ihrig Reviewed-By: Michaƫl Zasso --- tools/update-eslint.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/update-eslint.sh b/tools/update-eslint.sh index 0c9d3758dc..ec0e4858cf 100755 --- a/tools/update-eslint.sh +++ b/tools/update-eslint.sh @@ -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