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:
commit
baad8458de
1 changed files with 1 additions and 1 deletions
|
@ -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) => {
|
||||||
|
|
Loading…
Add table
Reference in a new issue