@code-pushup/cli 0.14.1 → 0.14.3

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 (3) hide show
  1. package/README.md +3 -2
  2. package/index.js +9 -4
  3. package/package.json +1 -1
package/README.md CHANGED
@@ -77,7 +77,8 @@ _If you're looking for programmatic usage, then refer to the underlying [@code-p
77
77
 
78
78
  4. Run the CLI with `npx code-pushup` (see `--help` for list of commands and arguments).
79
79
 
80
- 5. View report file(s) in output directory (specified by `persist.outputDir` configuration).
80
+ 5. View report file(s) in output directory (specified by `persist.outputDir` configuration).
81
+ This folder should be ignored in your `.gitignore`.
81
82
 
82
83
  ### Set up categories (optional)
83
84
 
@@ -156,7 +157,7 @@ Each example is fully tested to demonstrate best practices for plugin testing as
156
157
 
157
158
  - 📏 [File Size](../../examples/plugins/src/file-size)
158
159
  - 📦 [Package Json](../../examples/plugins/src/package-json)
159
- - 🔥 [Lighthouse](../../examples/plugins/src/lighthouse)
160
+ - 🔥 [Lighthouse](../../examples/plugins/src/lighthouse) (official implementation [here](../../../../packages/plugin-lighthouse))
160
161
 
161
162
  ## CLI commands and options
162
163
 
package/index.js CHANGED
@@ -1377,6 +1377,13 @@ function deepClone(obj) {
1377
1377
  }
1378
1378
 
1379
1379
  // packages/utils/src/lib/reports/scoring.ts
1380
+ var GroupRefInvalidError = class extends Error {
1381
+ constructor(auditSlug, pluginSlug) {
1382
+ super(
1383
+ `Group has invalid ref - audit with slug ${auditSlug} from plugin ${pluginSlug} not found`
1384
+ );
1385
+ }
1386
+ };
1380
1387
  function scoreReport(report) {
1381
1388
  const allScoredAuditsAndGroups = /* @__PURE__ */ new Map();
1382
1389
  const scoredPlugins = report.plugins.map((plugin) => {
@@ -1390,9 +1397,7 @@ function scoreReport(report) {
1390
1397
  `${slug}-${ref.slug}-audit`
1391
1398
  )?.score;
1392
1399
  if (score == null) {
1393
- throw new Error(
1394
- `Group has invalid ref - audit with slug ${ref.slug} from plugin ${slug} not found`
1395
- );
1400
+ throw new GroupRefInvalidError(ref.slug, slug);
1396
1401
  }
1397
1402
  return score;
1398
1403
  }
@@ -1533,7 +1538,7 @@ var verboseUtils = (verbose = false) => ({
1533
1538
 
1534
1539
  // packages/core/package.json
1535
1540
  var name = "@code-pushup/core";
1536
- var version = "0.14.1";
1541
+ var version = "0.14.3";
1537
1542
 
1538
1543
  // packages/core/src/lib/implementation/execute-plugin.ts
1539
1544
  import chalk4 from "chalk";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@code-pushup/cli",
3
- "version": "0.14.1",
3
+ "version": "0.14.3",
4
4
  "license": "MIT",
5
5
  "bin": {
6
6
  "code-pushup": "index.js"