Skip to content

Commit

Permalink
Merge pull request #412 from xontab/bugfix/changed-log-level-error-ex…
Browse files Browse the repository at this point in the history
…ec-npm

Log level for npm list command changed to error to increase compatibility
  • Loading branch information
joaomoreno authored Jan 13, 2020
2 parents 2a02458 + ef3322b commit 6e5c2d5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/npm.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ function checkNPM(cancellationToken?: CancellationToken): Promise<void> {

function getNpmDependencies(cwd: string): Promise<string[]> {
return checkNPM()
.then(() => exec('npm list --production --parseable --depth=99999 --link=true', { cwd, maxBuffer: 5000 * 1024 }))
.then(() => exec('npm list --production --parseable --depth=99999 --loglevel=error --link=true', { cwd, maxBuffer: 5000 * 1024 }))
.then(({ stdout }) => stdout
.split(/[\r\n]/)
.filter(dir => path.isAbsolute(dir)));
Expand Down

0 comments on commit 6e5c2d5

Please sign in to comment.