release: Don't capture stdout when unnecessary
This should make it easier to troubleshoot issues.pull/4792/head
parent
83b55eb41f
commit
8db6b5da4a
|
@ -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) => {
|
||||||
|
|
Loading…
Reference in New Issue