@code-pushup/core 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
|
@@ -1238,7 +1238,7 @@ var ProcessError = class extends Error {
|
|
|
1238
1238
|
}
|
|
1239
1239
|
};
|
|
1240
1240
|
function executeProcess(cfg) {
|
|
1241
|
-
const { observer, cwd, command, args,
|
|
1241
|
+
const { observer, cwd, command, args, ignoreExitCode = false } = cfg;
|
|
1242
1242
|
const { onStdout, onError, onComplete } = observer ?? {};
|
|
1243
1243
|
const date = (/* @__PURE__ */ new Date()).toISOString();
|
|
1244
1244
|
const start = performance.now();
|
|
@@ -1258,7 +1258,7 @@ function executeProcess(cfg) {
|
|
|
1258
1258
|
});
|
|
1259
1259
|
process2.on("close", (code) => {
|
|
1260
1260
|
const timings = { date, duration: calcDuration(start) };
|
|
1261
|
-
if (code === 0 ||
|
|
1261
|
+
if (code === 0 || ignoreExitCode) {
|
|
1262
1262
|
onComplete?.();
|
|
1263
1263
|
resolve({ code, stdout, stderr, ...timings });
|
|
1264
1264
|
} else {
|