mirror of
https://github.com/Microsoft/vscode
synced 2024-08-27 21:09:43 +00:00
omit stderr from yarn deps
This commit is contained in:
parent
deb667a807
commit
9d1aea207b
|
@ -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