diff --git a/src/utils/observe-process.ts b/src/utils/observe-process.ts index d93fdba..e2cf484 100644 --- a/src/utils/observe-process.ts +++ b/src/utils/observe-process.ts @@ -27,11 +27,11 @@ export default function observeProcess( subscriber.error(error) }) - process.stdout.on('data', (data: Buffer) => { - subscriber.next(data.toString().trim()) - stream.write(data) - }) - process.stderr.on('data', (data: Buffer) => stream.write(data)) + process.stdout.on('data', (data: Buffer) => { + subscriber.next(data.toString().trim()) + stream.write(data) + }) + process.stderr.on('data', (data: Buffer) => stream.write(data)) })() }) }