From 4302d01253ba24c267005554d7340a779b7df622 Mon Sep 17 00:00:00 2001 From: Yiyang Hao Date: Wed, 25 Dec 2019 11:30:43 +0800 Subject: [PATCH] Support linked npm modules Fixes #203 --- src/npm.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/npm.ts b/src/npm.ts index 07fcac81..9de9f1ed 100644 --- a/src/npm.ts +++ b/src/npm.ts @@ -54,7 +54,7 @@ function checkNPM(cancellationToken?: CancellationToken): Promise { function getNpmDependencies(cwd: string): Promise { 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)));