Skip to content

Commit

Permalink
Format 4c389d7
Browse files Browse the repository at this point in the history
  • Loading branch information
prettifier[bot] committed Oct 3, 2020
1 parent 4c389d7 commit fa2a640
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions src/class.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export class Process {
this.endedCallbacks = []
this.childProcess = childProcess.spawn(args.runnable, args.params, {
cwd: args.cwd,
env: args.env
env: args.env,
})
this.childProcess.on("close", this.onClose.bind(this))
if (this.childProcess.stdin == null) {
Expand All @@ -62,7 +62,7 @@ export class Process {
killed: true,
stdText: this.stdout.fullText(),
errText: this.stderr.fullText(),
combinedText: this.output.fullText()
combinedText: this.output.fullText(),
}
this.childProcess.kill()
await delay(1)
Expand All @@ -79,7 +79,7 @@ export class Process {
if (this.result) {
return this.result
}
return new Promise(resolve => {
return new Promise((resolve) => {
this.endedCallbacks.push(resolve)
})
}
Expand All @@ -91,7 +91,7 @@ export class Process {
killed: false,
stdText: this.stdout.fullText(),
errText: this.stderr.fullText(),
combinedText: this.output.fullText()
combinedText: this.output.fullText(),
}
for (const endedCallback of this.endedCallbacks) {
endedCallback(this.result)
Expand Down
2 changes: 1 addition & 1 deletion src/start.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,6 @@ export function start(command: string | string[], args: SpawnOptions = {}): obse
cwd: args.cwd || process.cwd(),
env: args.env || process.env,
params,
runnable
runnable,
})
}

0 comments on commit fa2a640

Please sign in to comment.