sprint-es 0.0.104 → 0.0.105
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/cjs/cli.cjs +5 -2
- package/dist/esm/cli.js +5 -2
- package/package.json +1 -1
package/dist/cjs/cli.cjs
CHANGED
|
@@ -171,7 +171,10 @@ function runCommand(cmd, envVars) {
|
|
|
171
171
|
});
|
|
172
172
|
child.on("exit", (code) => {
|
|
173
173
|
if (code === 0 || code === null) resolve2();
|
|
174
|
-
else
|
|
174
|
+
else {
|
|
175
|
+
console.error(`Command failed with exit code ${code}`);
|
|
176
|
+
process.exit(code);
|
|
177
|
+
}
|
|
175
178
|
});
|
|
176
179
|
});
|
|
177
180
|
}
|
|
@@ -451,7 +454,7 @@ async function main() {
|
|
|
451
454
|
process.exit(1);
|
|
452
455
|
}
|
|
453
456
|
}
|
|
454
|
-
main().catch((err) => {
|
|
457
|
+
main().then(() => process.exit(0)).catch((err) => {
|
|
455
458
|
console.error(err);
|
|
456
459
|
process.exit(1);
|
|
457
460
|
});
|
package/dist/esm/cli.js
CHANGED
|
@@ -152,7 +152,10 @@ function runCommand(cmd, envVars) {
|
|
|
152
152
|
});
|
|
153
153
|
child.on("exit", (code) => {
|
|
154
154
|
if (code === 0 || code === null) resolve2();
|
|
155
|
-
else
|
|
155
|
+
else {
|
|
156
|
+
console.error(`Command failed with exit code ${code}`);
|
|
157
|
+
process.exit(code);
|
|
158
|
+
}
|
|
156
159
|
});
|
|
157
160
|
});
|
|
158
161
|
}
|
|
@@ -432,7 +435,7 @@ async function main() {
|
|
|
432
435
|
process.exit(1);
|
|
433
436
|
}
|
|
434
437
|
}
|
|
435
|
-
main().catch((err) => {
|
|
438
|
+
main().then(() => process.exit(0)).catch((err) => {
|
|
436
439
|
console.error(err);
|
|
437
440
|
process.exit(1);
|
|
438
441
|
});
|