@code-pushup/coverage-plugin 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/bin.js +2 -2
- package/package.json +1 -1
package/bin.js
CHANGED
|
@@ -732,7 +732,7 @@ var ProcessError = class extends Error {
|
|
|
732
732
|
}
|
|
733
733
|
};
|
|
734
734
|
function executeProcess(cfg) {
|
|
735
|
-
const { observer, cwd, command, args,
|
|
735
|
+
const { observer, cwd, command, args, ignoreExitCode = false } = cfg;
|
|
736
736
|
const { onStdout, onError, onComplete } = observer ?? {};
|
|
737
737
|
const date = (/* @__PURE__ */ new Date()).toISOString();
|
|
738
738
|
const start = performance.now();
|
|
@@ -752,7 +752,7 @@ function executeProcess(cfg) {
|
|
|
752
752
|
});
|
|
753
753
|
process2.on("close", (code) => {
|
|
754
754
|
const timings = { date, duration: calcDuration(start) };
|
|
755
|
-
if (code === 0 ||
|
|
755
|
+
if (code === 0 || ignoreExitCode) {
|
|
756
756
|
onComplete?.();
|
|
757
757
|
resolve({ code, stdout, stderr, ...timings });
|
|
758
758
|
} else {
|