We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7809a84 commit 5e25114Copy full SHA for 5e25114
src/main.ts
@@ -4,6 +4,7 @@ import {normalize as normalizePath} from 'node:path';
4
import {cwd as getCwd} from 'node:process';
5
import {computeEnv} from './env.js';
6
import {readStreamAsString, combineStreams} from './stream.js';
7
+import readline from 'node:readline';
8
9
export interface Output {
10
stderr: string;
@@ -146,8 +147,11 @@ export class ExecProcess implements Result {
146
147
sources.push(proc.stdout);
148
}
149
const combined = combineStreams(sources);
150
+ const rl = readline.createInterface({
151
+ input: combined
152
+ });
153
- for await (const chunk of combined) {
154
+ for await (const chunk of rl) {
155
yield chunk.toString();
156
157
0 commit comments