@stacksjs/cli 0.58.56 → 0.58.57
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +7 -1
- package/package.json +1 -1
- package/src/exec.ts +8 -0
package/dist/index.js
CHANGED
|
@@ -14,7 +14,7 @@ async function installStack(name, options) {
|
|
|
14
14
|
// src/cli.ts
|
|
15
15
|
import cac from "cac";
|
|
16
16
|
// package.json
|
|
17
|
-
var version = "0.58.
|
|
17
|
+
var version = "0.58.57";
|
|
18
18
|
|
|
19
19
|
// src/cli.ts
|
|
20
20
|
function cli(name, options) {
|
|
@@ -58,6 +58,12 @@ async function exec(command, options) {
|
|
|
58
58
|
process.exit(exitCode);
|
|
59
59
|
}
|
|
60
60
|
});
|
|
61
|
+
if (options?.stdin === "pipe" && options.input) {
|
|
62
|
+
if (proc.stdin) {
|
|
63
|
+
proc.stdin.write(options.input);
|
|
64
|
+
proc.stdin.end();
|
|
65
|
+
}
|
|
66
|
+
}
|
|
61
67
|
const exited = await proc.exited;
|
|
62
68
|
if (exited === ExitCode.Success)
|
|
63
69
|
return ok(proc);
|
package/package.json
CHANGED
package/src/exec.ts
CHANGED
|
@@ -46,6 +46,14 @@ export async function exec(command: string | string[], options?: CliOptions): Pr
|
|
|
46
46
|
},
|
|
47
47
|
})
|
|
48
48
|
|
|
49
|
+
// Check if we need to write to stdin
|
|
50
|
+
if (options?.stdin === 'pipe' && options.input) {
|
|
51
|
+
if (proc.stdin) {
|
|
52
|
+
proc.stdin.write(options.input)
|
|
53
|
+
proc.stdin.end()
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
|
|
49
57
|
const exited = await proc.exited
|
|
50
58
|
if (exited === ExitCode.Success)
|
|
51
59
|
return ok(proc)
|