@code-pushup/cli 0.29.0 → 0.30.0-alpha
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/index.js +2 -2
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -1254,7 +1254,7 @@ var ProcessError = class extends Error {
|
|
|
1254
1254
|
}
|
|
1255
1255
|
};
|
|
1256
1256
|
function executeProcess(cfg) {
|
|
1257
|
-
const { observer, cwd, command, args,
|
|
1257
|
+
const { observer, cwd, command, args, ignoreExitCode = false } = cfg;
|
|
1258
1258
|
const { onStdout, onError, onComplete } = observer ?? {};
|
|
1259
1259
|
const date = (/* @__PURE__ */ new Date()).toISOString();
|
|
1260
1260
|
const start = performance.now();
|
|
@@ -1274,7 +1274,7 @@ function executeProcess(cfg) {
|
|
|
1274
1274
|
});
|
|
1275
1275
|
process2.on("close", (code) => {
|
|
1276
1276
|
const timings = { date, duration: calcDuration(start) };
|
|
1277
|
-
if (code === 0 ||
|
|
1277
|
+
if (code === 0 || ignoreExitCode) {
|
|
1278
1278
|
onComplete?.();
|
|
1279
1279
|
resolve({ code, stdout, stderr, ...timings });
|
|
1280
1280
|
} else {
|