gulpfile.esm.js
function _exec(command, args = [], options = {}) {
  return new Promise((fulfill, reject) => spawn(normalize(command), args, {shell: true, stdio: 'inherit', ...options})
    .on('close', code => code ? reject(new Error(`${command}: ${code}`)) : fulfill())
  );
}
function _exec(command, args = [], options = {}) {
  return new Promise((fulfill, reject) => spawn(normalize(command), args, {shell: true, stdio: 'inherit', ...options})
    .on('close', code => code ? reject(new Error(`${command}: ${code}`)) : fulfill())
  );
}
function _exec ( command , args = [ ] , options = { } ) { return new Promise ( ( fulfill , reject ) => spawn ( normalize ( command ) , args , { shell : true , stdio : 'inherit' , ... options } ) . on ( 'close' , code => code ? reject ( new Error ( ` ${ command } ${ code } ` ) ) : fulfill ( ) ) ) ; }
Spawns a new process using the specified command.
@param {string} command The command to run.
@param {string[]} [args] The command arguments.
@param {SpawnOptions} [options] The settings to customize how the process is spawned.
@return {Promise<void>} Completes when the command is finally terminated.
Spawns a new process using the specified command .