Merge pull request #71 from SrTobi/pullreq/fix-depth

set --depth to 9999 to ignore user settings, when listing dependencies
This commit is contained in:
João Moreno 2016-02-29 14:52:55 +01:00
commit baad8458de

View file

@ -1,7 +1,7 @@
import * as path from 'path'; import * as path from 'path';
import * as cp from 'child_process'; import * as cp from 'child_process';
const cmd = 'npm list --production --parseable'; const cmd = 'npm list --production --parseable --depth=99999';
export function getDependencies(cwd: string): Promise<string[]> { export function getDependencies(cwd: string): Promise<string[]> {
return new Promise<string[]>((c, e) => { return new Promise<string[]>((c, e) => {