fix: fix command options
This commit is contained in:
+9
-6
@@ -14,12 +14,15 @@ export class Command {
|
|||||||
constructor(command: string, options?: any) {
|
constructor(command: string, options?: any) {
|
||||||
this.command = command;
|
this.command = command;
|
||||||
this.isWindows = process.platform.lastIndexOf("win") === 0;
|
this.isWindows = process.platform.lastIndexOf("win") === 0;
|
||||||
this.options = Object.assign(options || {}, {
|
this.options = Object.assign(
|
||||||
cwd: process.cwd(),
|
{
|
||||||
env: process.env,
|
cwd: process.cwd(),
|
||||||
verbosity: options && options.silent ? 1 : 2,
|
env: process.env,
|
||||||
usePowerShell: false,
|
verbosity: options && options.silent ? 1 : 2,
|
||||||
});
|
usePowerShell: false,
|
||||||
|
},
|
||||||
|
options || {},
|
||||||
|
);
|
||||||
|
|
||||||
let previousPath;
|
let previousPath;
|
||||||
previousPath = this.options.env.PATH;
|
previousPath = this.options.env.PATH;
|
||||||
|
|||||||
Reference in New Issue
Block a user