Skip to content

Commit

Permalink
Minor refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
Shaun Tabone committed Dec 29, 2019
1 parent 2e003b0 commit e0d73c9
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,8 +54,8 @@ function checkNPM(cancellationToken?: CancellationToken): Promise<void> {

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

0 comments on commit e0d73c9

Please sign in to comment.