Skip to content

Commit

Permalink
Don't install peer dependencies if there are none
Browse files Browse the repository at this point in the history
  • Loading branch information
sheck committed Nov 9, 2019
1 parent a2ac4a3 commit d7678af
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion main.js
Original file line number Diff line number Diff line change
Expand Up @@ -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')
}
Expand Down

0 comments on commit d7678af

Please sign in to comment.