We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 537eea5 commit ab142f5Copy full SHA for ab142f5
1 file changed
src/exec.js
@@ -62,7 +62,9 @@ function execSync(cmd, opts) {
62
"childProcess.stdout.pipe(stdoutStream, {end: false});",
63
"childProcess.stderr.pipe(stdoutStream, {end: false});",
64
"childProcess.stdout.pipe(process.stdout);",
65
- "childProcess.stderr.pipe(process.stderr);"
+ "childProcess.stderr.pipe(process.stderr);",
66
+ "process.stdout.on('end', function(){ stdoutStream.end(); });",
67
+ "process.stderr.on('end', function(){ stdoutStream.end(); });"
68
].join('\n');
69
70
fs.writeFileSync(scriptFile, script);
0 commit comments