From 2e003b0dc5510977e2ebc5acf7109f3d246a7751 Mon Sep 17 00:00:00 2001 From: Shaun Tabone Date: Sun, 29 Dec 2019 14:41:11 +0100 Subject: [PATCH] Changed loglevel to error when listing deps using npm list command --- src/npm.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/npm.ts b/src/npm.ts index 07fcac8..6137a3c 100644 --- a/src/npm.ts +++ b/src/npm.ts @@ -54,8 +54,8 @@ 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(({ stdout }) => stdout + .then(() => exec('npm list --production --parseable --depth=99999 --loglevel=error', { cwd, maxBuffer: 5000 * 1024 })) .split(/[\r\n]/) .filter(dir => path.isAbsolute(dir))); }