@code-pushup/cli 0.28.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 +5 -10
  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, alwaysResolve = false } = cfg;
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 || alwaysResolve) {
1277
+ if (code === 0 || ignoreExitCode) {
1278
1278
  onComplete?.();
1279
1279
  resolve({ code, stdout, stderr, ...timings });
1280
1280
  } else {
@@ -1544,7 +1544,7 @@ function reportToDetailsSection(audit) {
1544
1544
  function reportToAboutSection(report) {
1545
1545
  const date = formatDate(/* @__PURE__ */ new Date());
1546
1546
  const { duration, version: version2, commit, plugins, categories } = report;
1547
- const commitInfo = commit ? `${commit.message} (${commit.hash.slice(0, 7)})` : "N/A";
1547
+ const commitInfo = commit ? `${commit.message} (${commit.hash})` : "N/A";
1548
1548
  const reportMetaTable = [
1549
1549
  reportMetaTableHeaders,
1550
1550
  [
@@ -1620,12 +1620,7 @@ function formatDiffHeaderSection(diff) {
1620
1620
  ...diff.audits.changed
1621
1621
  ])
1622
1622
  );
1623
- const styleCommit = (commit) => style(commit.hash.slice(0, 7), ["c"]);
1624
- const styleCommits = (commits) => {
1625
- const src = styleCommit(commits.before);
1626
- const tgt = styleCommit(commits.after);
1627
- return `compared target commit ${tgt} with source commit ${src}`;
1628
- };
1623
+ const styleCommits = (commits) => `compared target commit ${commits.after.hash} with source commit ${commits.before.hash}`;
1629
1624
  return paragraphs(
1630
1625
  h1("Code PushUp"),
1631
1626
  diff.commits ? `${outcomeTexts[outcome]} \u2013 ${styleCommits(diff.commits)}.` : `${outcomeTexts[outcome]}.`
@@ -2066,7 +2061,7 @@ var verboseUtils = (verbose = false) => ({
2066
2061
 
2067
2062
  // packages/core/package.json
2068
2063
  var name = "@code-pushup/core";
2069
- var version = "0.28.0";
2064
+ var version = "0.29.0";
2070
2065
 
2071
2066
  // packages/core/src/lib/implementation/execute-plugin.ts
2072
2067
  import chalk5 from "chalk";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@code-pushup/cli",
3
- "version": "0.28.0",
3
+ "version": "0.30.0-alpha",
4
4
  "license": "MIT",
5
5
  "bin": {
6
6
  "code-pushup": "index.js"