renamed npm list cmd string
This commit is contained in:
parent
44ecf31435
commit
b5501e6127
1 changed files with 2 additions and 2 deletions
|
@ -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<string[]> {
|
||||
return new Promise<string[]>((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')
|
||||
|
|
Loading…
Add table
Reference in a new issue