release: Don't capture stdout when unnecessary

This should make it easier to troubleshoot issues.
pull/4792/head
Richard Hansen 2021-02-15 16:07:37 -05:00 committed by John McLear
parent 83b55eb41f
commit 8db6b5da4a
1 changed files with 2 additions and 1 deletions

View File

@ -29,7 +29,8 @@ if (!release) {
const cwd = path.join(fs.realpathSync(__dirname), '../../'); const cwd = path.join(fs.realpathSync(__dirname), '../../');
process.chdir(cwd); process.chdir(cwd);
const run = childProcess.execSync; // Run command without capturing stdout.
const run = (cmd, opts = {}) => childProcess.execSync(cmd, {stdio: 'inherit', ...opts});
const readJson = (filename) => JSON.parse(fs.readFileSync(filename, {encoding: 'utf8', flag: 'r'})); const readJson = (filename) => JSON.parse(fs.readFileSync(filename, {encoding: 'utf8', flag: 'r'}));
const writeJson = (filename, obj) => { const writeJson = (filename, obj) => {