omit stderr from yarn deps
This commit is contained in:
parent
deb667a807
commit
9d1aea207b
1 changed files with 1 additions and 1 deletions
|
@ -43,7 +43,7 @@ function asYarnDependency(prefix, tree) {
|
|||
}
|
||||
|
||||
function getYarnProductionDependencies(cwd) {
|
||||
const raw = cp.execSync('yarn list --json', { cwd, encoding: 'utf8', env: { ...process.env, NODE_ENV: 'production' } });
|
||||
const raw = cp.execSync('yarn list --json', { cwd, encoding: 'utf8', env: { ...process.env, NODE_ENV: 'production' }, stdio: [null, null, 'ignore'] });
|
||||
const match = /^{"type":"tree".*$/m.exec(raw);
|
||||
|
||||
if (!match || match.length !== 1) {
|
||||
|
|
Loading…
Reference in a new issue