Skip to content

Commit f3a73fa

Browse files
committed
fix: Ensure to expose eventual stdin requests
1 parent 4460948 commit f3a73fa

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

lib/run-program.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,11 @@ const isObject = require("es5-ext/object/is-object")
77
module.exports = (command, args, options = {}) => {
88
if (!isObject(options)) options = {};
99
const { logger } = options;
10-
const promise = spawn(command, args, { cwd: options.cwd, split: Boolean(logger) });
10+
const promise = spawn(command, args, {
11+
cwd: options.cwd,
12+
split: Boolean(logger),
13+
stdio: ["inherit", "pipe", "pipe"],
14+
});
1115

1216
if (logger) {
1317
if (promise.stdout) promise.stdout.on("data", data => logger.info(String(data)));

0 commit comments

Comments
 (0)