Revert "Merge pull request #411 from felixhao28/master"

This reverts commit 2a02458bad, reversing
changes made to 2844e5bed5.
This commit is contained in:
Joao Moreno 2020-01-21 15:08:42 +01:00
parent 6e5c2d5488
commit 7eba451e35
No known key found for this signature in database
GPG key ID: 9494F5E6167A8E6B

View file

@ -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 --loglevel=error --link=true', { cwd, maxBuffer: 5000 * 1024 }))
.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)));