From d7678af660de76d3012745a55bb1979232bf5ed5 Mon Sep 17 00:00:00 2001 From: Nick Sheck Date: Fri, 8 Nov 2019 15:30:09 -0800 Subject: [PATCH] Don't install peer dependencies if there are none --- main.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/main.js b/main.js index 76f293c..9a3d3a9 100644 --- a/main.js +++ b/main.js @@ -59,7 +59,9 @@ async function installEslintPackagesAsync () { ['npm i', ...versions, '--no-package-lock'].join(' ') ) const peerVersions = await getPeerDependencies(error) - await easyExec(['npm i', ...peerVersions, '--no-package-lock'].join(' ')) + if (peerVersions.length > 0) { + await easyExec(['npm i', ...peerVersions, '--no-package-lock'].join(' ')) + } } finally { await io.mv('package.json-bak', 'package.json') }