From fb732561a8d1470e49fa74155a67a9a156c67e62 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 6fa8c77d6e255a..3616d62db334d2 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-bin-links --production eslint@latest cd node_modules/eslint