@code-pushup/cli 0.95.0 → 0.95.2

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/README.md CHANGED
@@ -195,11 +195,11 @@ Each example is fully tested to demonstrate best practices for plugin testing as
195
195
 
196
196
  ### Global Options
197
197
 
198
- | Option | Type | Default | Description |
199
- | ---------------- | --------- | -------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------- |
200
- | **`--verbose`** | `boolean` | `false` | When true creates more verbose output. This is helpful when debugging. You may also set `CP_VERBOSE` env variable instead. |
201
- | **`--config`** | `string` | looks for `code-pushup.config.{ts\|mjs\|js}` | Path to config file. |
202
- | **`--tsconfig`** | `string` | n/a | Path to a TypeScript config, used to load config file. |
198
+ | Option | Type | Default | Description |
199
+ | ---------------- | --------- | ----------------------------------------------------- | ------------------------------------------------------ |
200
+ | **`--verbose`** | `boolean` | `process.env['CP_VERBOSE']` if set, otherwise `false` | Toggles whether to print debug logs. |
201
+ | **`--config`** | `string` | looks for `code-pushup.config.{ts\|mjs\|js}` | Path to config file. |
202
+ | **`--tsconfig`** | `string` | n/a | Path to a TypeScript config, used to load config file. |
203
203
 
204
204
  > [!NOTE]
205
205
  > By default, the CLI loads `code-pushup.config.(ts|mjs|js)` if no config path is provided with `--config`.
package/bin/index.js ADDED
@@ -0,0 +1,11 @@
1
+ #!/usr/bin/env node
2
+
3
+ /**
4
+ * This file serves as the CLI entry point.
5
+ *
6
+ * We use a separate bin file (instead of pointing directly to src/index.js)
7
+ * because TypeScript build processes don't preserve file permissions.
8
+ * By tracking this file in git with executable permissions (+x), we ensure
9
+ * the CLI remains executable after npm publish without needing post-install scripts.
10
+ */
11
+ import '../src/index.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@code-pushup/cli",
3
- "version": "0.95.0",
3
+ "version": "0.95.2",
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",
@@ -39,15 +39,15 @@
39
39
  },
40
40
  "type": "module",
41
41
  "bin": {
42
- "code-pushup": "./src/index.js"
42
+ "code-pushup": "./bin/index.js"
43
43
  },
44
44
  "engines": {
45
45
  "node": ">=20"
46
46
  },
47
47
  "dependencies": {
48
- "@code-pushup/models": "0.95.0",
49
- "@code-pushup/core": "0.95.0",
50
- "@code-pushup/utils": "0.95.0",
48
+ "@code-pushup/models": "0.95.2",
49
+ "@code-pushup/core": "0.95.2",
50
+ "@code-pushup/utils": "0.95.2",
51
51
  "yargs": "^17.7.2",
52
52
  "ansis": "^3.3.0",
53
53
  "simple-git": "^3.20.0"
@@ -1,9 +1,8 @@
1
1
  export function yargsGlobalOptionsDefinition() {
2
2
  return {
3
3
  verbose: {
4
- describe: 'When true creates more verbose output. This is helpful when debugging. You may also set CP_VERBOSE env variable instead.',
4
+ describe: 'Toggles whether to print debug logs. The default value is derived from the CP_VERBOSE environment variable (false if not set).',
5
5
  type: 'boolean',
6
- default: false,
7
6
  },
8
7
  config: {
9
8
  describe: 'Path to config file. By default it loads code-pushup.config.(ts|mjs|js).',
@@ -1 +1 @@
1
- {"version":3,"file":"global.options.js","sourceRoot":"","sources":["../../../../src/lib/implementation/global.options.ts"],"names":[],"mappings":"AAGA,MAAM,UAAU,4BAA4B;IAI1C,OAAO;QACL,OAAO,EAAE;YACP,QAAQ,EACN,0HAA0H;YAC5H,IAAI,EAAE,SAAS;YACf,OAAO,EAAE,KAAK;SACf;QACD,MAAM,EAAE;YACN,QAAQ,EACN,0EAA0E;YAC5E,IAAI,EAAE,QAAQ;SACf;QACD,QAAQ,EAAE;YACR,QAAQ,EACN,mEAAmE;YACrE,IAAI,EAAE,QAAQ;SACf;KACF,CAAC;AACJ,CAAC"}
1
+ {"version":3,"file":"global.options.js","sourceRoot":"","sources":["../../../../src/lib/implementation/global.options.ts"],"names":[],"mappings":"AAGA,MAAM,UAAU,4BAA4B;IAI1C,OAAO;QACL,OAAO,EAAE;YACP,QAAQ,EACN,gIAAgI;YAClI,IAAI,EAAE,SAAS;SAChB;QACD,MAAM,EAAE;YACN,QAAQ,EACN,0EAA0E;YAC5E,IAAI,EAAE,QAAQ;SACf;QACD,QAAQ,EAAE;YACR,QAAQ,EACN,mEAAmE;YACrE,IAAI,EAAE,QAAQ;SACf;KACF,CAAC;AACJ,CAAC"}