scripts/release.js
function runCommand(command) {
    return new Promise((resolve, reject) => {
        utils.logInfo(`Command: ${command}`);
        childProcess.exec(command, (error, stdout, stderr) => {
            // If exec returns content in stderr, but no error, print it as a warning.
            // If exec returns an error, reject the promise.
            if (error) {
                reject(error);
                return;
            } else if (stderr) {
                utils.logInfo(stderr);
            }
            resolve(stdout);
        });
    });
}
function runCommand(command) {
    return new Promise((resolve, reject) => {
        utils.logInfo(`Command: ${command}`);
        childProcess.exec(command, (error, stdout, stderr) => {
            // If exec returns content in stderr, but no error, print it as a warning.
            // If exec returns an error, reject the promise.
            if (error) {
                reject(error);
                return;
            } else if (stderr) {
                utils.logInfo(stderr);
            }
            resolve(stdout);
        });
    });
}
function runCommand ( command ) { return new Promise ( ( resolve , reject ) => { utils . logInfo ( ` ${ command } ` ) ; childProcess . exec ( command , ( error , stdout , stderr ) => { // If exec returns content in stderr, but no error, print it as a warning. // If exec returns an error, reject the promise. if ( error ) { reject ( error ) ; return ; } else if ( stderr ) { utils . logInfo ( stderr ) ; } resolve ( stdout ) ; } ) ; } ) ; }
Runs the given command in a child process.

Returns a promise that is resolved with the generated
stdout of the command (as UTF-8 string) when the child process
terminates normally or rejected if the child process
terminates with a non-zero exit code.
Runs the given command in a child process .