Merge pull request #411 from felixhao28/master
Support linked npm modules
This commit is contained in:
commit
2a02458bad
1 changed files with 1 additions and 1 deletions
|
@ -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)));
|
||||
|
|
Loading…
Add table
Reference in a new issue