diff --git a/src/run/command.ts b/src/run/command.ts index 568784e..c191b26 100644 --- a/src/run/command.ts +++ b/src/run/command.ts @@ -14,12 +14,15 @@ export class Command { constructor(command: string, options?: any) { this.command = command; this.isWindows = process.platform.lastIndexOf("win") === 0; - this.options = Object.assign(options || {}, { - cwd: process.cwd(), - env: process.env, - verbosity: options && options.silent ? 1 : 2, - usePowerShell: false, - }); + this.options = Object.assign( + { + cwd: process.cwd(), + env: process.env, + verbosity: options && options.silent ? 1 : 2, + usePowerShell: false, + }, + options || {}, + ); let previousPath; previousPath = this.options.env.PATH;