Skip to content

Commit

Permalink
Merge pull request #411 from felixhao28/master
Browse files Browse the repository at this point in the history
Support linked npm modules
  • Loading branch information
joaomoreno authored Jan 13, 2020
2 parents 2844e5b + 4302d01 commit 2a02458
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', { cwd, maxBuffer: 5000 * 1024 }))
.then(() => exec('npm list --production --parseable --depth=99999 --link=true', { cwd, maxBuffer: 5000 * 1024 }))
.then(({ stdout }) => stdout
.split(/[\r\n]/)
.filter(dir => path.isAbsolute(dir)));
Expand Down

0 comments on commit 2a02458

Please sign in to comment.