Skip to content

Commit

Permalink
Revert "Merge pull request #411 from felixhao28/master"
Browse files Browse the repository at this point in the history
This reverts commit 2a02458, reversing
changes made to 2844e5b.
  • Loading branch information
joaomoreno committed Jan 21, 2020
1 parent 6e5c2d5 commit 7eba451
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 --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)));
Expand Down

0 comments on commit 7eba451

Please sign in to comment.