codify-plugin-lib 1.0.17 → 1.0.18
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/utils/utils.js +1 -2
- package/package.json +1 -1
- package/src/utils/utils.ts +2 -3
package/dist/utils/utils.js
CHANGED
|
@@ -12,8 +12,7 @@ var SpawnStatus;
|
|
|
12
12
|
})(SpawnStatus || (exports.SpawnStatus = SpawnStatus = {}));
|
|
13
13
|
async function codifySpawn(cmd, args, opts, extras) {
|
|
14
14
|
try {
|
|
15
|
-
const
|
|
16
|
-
const result = await (0, promise_spawn_1.default)(cmd, args ?? [], { ...opts, stdio, stdioString: true, shell: true }, extras);
|
|
15
|
+
const result = await (0, promise_spawn_1.default)(cmd, args ?? [], { ...opts, stdio: 'pipe', stdioString: true, shell: true }, extras);
|
|
17
16
|
if (isDebug()) {
|
|
18
17
|
console.log(`codifySpawn result for: ${cmd}`);
|
|
19
18
|
console.log(JSON.stringify(result, null, 2));
|
package/package.json
CHANGED
package/src/utils/utils.ts
CHANGED
|
@@ -23,12 +23,11 @@ export async function codifySpawn(
|
|
|
23
23
|
extras?: Record<any, any>,
|
|
24
24
|
): Promise<SpawnResult> {
|
|
25
25
|
try {
|
|
26
|
-
const stdio = isDebug() ? 'inherit' : 'pipe';
|
|
27
26
|
const result = await promiseSpawn(
|
|
28
27
|
cmd,
|
|
29
28
|
args ?? [],
|
|
30
|
-
{ ...opts, stdio, stdioString: true, shell: true },
|
|
31
|
-
extras
|
|
29
|
+
{ ...opts, stdio: 'pipe', stdioString: true, shell: true },
|
|
30
|
+
extras,
|
|
32
31
|
);
|
|
33
32
|
|
|
34
33
|
if (isDebug()) {
|