From b5501e6127c4a922206059d9be4acf0cb7245be2 Mon Sep 17 00:00:00 2001 From: SrTobi Date: Mon, 29 Feb 2016 11:32:04 +0100 Subject: [PATCH] renamed npm list cmd string --- src/npm.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/npm.ts b/src/npm.ts index d9301d9..abe14e9 100644 --- a/src/npm.ts +++ b/src/npm.ts @@ -1,11 +1,11 @@ import * as path from 'path'; import * as cp from 'child_process'; -const cmd = 'npm list --production --parseable'; +const listCmd = 'npm list --production --parseable'; export function getDependencies(cwd: string): Promise { return new Promise((c, e) => { - cp.exec(cmd, { cwd }, (err, stdout, stderr) => { + cp.exec(listCmd, { cwd }, (err, stdout, stderr) => { if (err) return e(err); c(stdout.toString('utf8')