@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.
Files changed (2) hide show
  1. package/index.js +2 -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, alwaysResolve = false } = cfg;
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 || alwaysResolve) {
1261
+ if (code === 0 || ignoreExitCode) {
1262
1262
  onComplete?.();
1263
1263
  resolve({ code, stdout, stderr, ...timings });
1264
1264
  } else {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@code-pushup/core",
3
- "version": "0.29.0",
3
+ "version": "0.30.0-alpha",
4
4
  "license": "MIT",
5
5
  "dependencies": {
6
6
  "@code-pushup/models": "*",