@code-pushup/cli 0.53.1 → 0.54.0

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 -5
  2. package/package.json +4 -4
package/index.js CHANGED
@@ -114,7 +114,6 @@ var fileNameSchema = z.string().trim().regex(filenameRegex, {
114
114
  message: `The filename has to be valid`
115
115
  }).min(1, { message: "file name is invalid" });
116
116
  var positiveIntSchema = z.number().int().positive();
117
- var nonnegativeIntSchema = z.number().int().nonnegative();
118
117
  var nonnegativeNumberSchema = z.number().nonnegative();
119
118
  function packageVersionSchema(options2) {
120
119
  const { versionDescription = "NPM version of the package", required } = options2 ?? {};
@@ -667,7 +666,7 @@ var auditDiffSchema = scorableWithPluginDiffSchema.merge(
667
666
  z16.object({
668
667
  values: makeComparisonSchema(auditValueSchema).merge(
669
668
  z16.object({
670
- diff: z16.number().int().describe("Value change (`values.after - values.before`)")
669
+ diff: z16.number().describe("Value change (`values.after - values.before`)")
671
670
  })
672
671
  ).describe("Audit `value` comparison"),
673
672
  displayValues: makeComparisonSchema(auditDisplayValueSchema).describe(
@@ -1013,6 +1012,7 @@ function executeProcess(cfg) {
1013
1012
  return new Promise((resolve, reject) => {
1014
1013
  const spawnedProcess = spawn(command2, args ?? [], {
1015
1014
  shell: true,
1015
+ windowsHide: true,
1016
1016
  ...options2
1017
1017
  });
1018
1018
  let stdout = "";
@@ -2379,7 +2379,7 @@ function reportToHeaderSection(report) {
2379
2379
  function logPlugins(plugins, verbose) {
2380
2380
  plugins.forEach((plugin) => {
2381
2381
  const { title, audits } = plugin;
2382
- const filteredAudits = verbose ? audits : audits.filter(({ score }) => score !== 1);
2382
+ const filteredAudits = verbose || audits.length === 1 ? audits : audits.filter(({ score }) => score !== 1);
2383
2383
  const diff = audits.length - filteredAudits.length;
2384
2384
  logAudits(title, filteredAudits);
2385
2385
  if (diff > 0) {
@@ -2564,7 +2564,7 @@ var verboseUtils = (verbose = false) => ({
2564
2564
 
2565
2565
  // packages/core/package.json
2566
2566
  var name = "@code-pushup/core";
2567
- var version = "0.53.1";
2567
+ var version = "0.54.0";
2568
2568
 
2569
2569
  // packages/core/src/lib/implementation/execute-plugin.ts
2570
2570
  import { bold as bold5 } from "ansis";
@@ -4107,7 +4107,7 @@ import { blue, dim as dim2, green as green4 } from "ansis";
4107
4107
  import yargs2 from "yargs";
4108
4108
 
4109
4109
  // packages/cli/package.json
4110
- var version2 = "0.53.1";
4110
+ var version2 = "0.54.0";
4111
4111
 
4112
4112
  // packages/cli/src/lib/implementation/formatting.ts
4113
4113
  import { bold as bold13, dim, green as green3 } from "ansis";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@code-pushup/cli",
3
- "version": "0.53.1",
3
+ "version": "0.54.0",
4
4
  "license": "MIT",
5
5
  "description": "A CLI to run all kinds of code quality measurements to align your team with company goals",
6
6
  "homepage": "https://code-pushup.dev",
@@ -44,9 +44,9 @@
44
44
  "code-pushup": "index.js"
45
45
  },
46
46
  "dependencies": {
47
- "@code-pushup/models": "0.53.1",
48
- "@code-pushup/core": "0.53.1",
49
- "@code-pushup/utils": "0.53.1",
47
+ "@code-pushup/models": "0.54.0",
48
+ "@code-pushup/core": "0.54.0",
49
+ "@code-pushup/utils": "0.54.0",
50
50
  "yargs": "^17.7.2",
51
51
  "ansis": "^3.3.0",
52
52
  "simple-git": "^3.20.0"