Minor refactoring
This commit is contained in:
parent
2e003b0dc5
commit
e0d73c9b8e
1 changed files with 1 additions and 1 deletions
|
@ -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)));
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue