@zgeoff/chex 0.3.10 → 0.3.12

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
@@ -58,7 +58,7 @@ The repo checks read the branch, the pushed commits and the repo's config:
58
58
  | `local-paths` | a line a pushed commit adds that holds the home folder or the host name | `--pushed-refs` |
59
59
  | `test-timeouts` | a `bun test` timeout above its lane's limit, in a script or a `bunfig.toml` | none |
60
60
  | `test-layout` | a test folder, file name or import outside [the test layout](../../docs/guides/test-layout.md) | none |
61
- | `workflows` | nothing: it warns on each fault of the shared workflow lint, and passes | the paths |
61
+ | `workflows` | nothing: it prints each fault of the shared workflow lint, and fails when there is one | the paths |
62
62
  | `dependency-gates` | a stale age-gate exclude, an override or an audit ignore that nothing needs, a first-party package with no age-gate exclude, or a pinned release younger than the age gate ([details](../../docs/architecture/dependency-updates.md#the-dependency-gates-check)) | none |
63
63
  | `uncommitted` | a file the branch changes that holds a change the push does not send | none |
64
64
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zgeoff/chex",
3
- "version": "0.3.10",
3
+ "version": "0.3.12",
4
4
  "description": "Run each shared docs and repo check as one subcommand, with the lefthook pre-push baseline that calls them",
5
5
  "keywords": [
6
6
  "checks",
@@ -32,22 +32,22 @@
32
32
  "access": "public"
33
33
  },
34
34
  "scripts": {
35
- "typecheck": "tsrs"
35
+ "typecheck": "tsrs --fast"
36
36
  },
37
37
  "dependencies": {
38
- "@zgeoff/std": "0.4.3",
38
+ "@zgeoff/std": "0.4.4",
39
39
  "oxc-parser": "0.158.0",
40
40
  "ts-pattern": "5.9.2"
41
41
  },
42
42
  "devDependencies": {
43
43
  "@types/bun": "1.4.4",
44
- "@zgeoff/rig": "0.2.5",
45
- "@zgeoff/std": "0.4.3",
46
- "@zgeoff/testing": "0.3.0",
44
+ "@zgeoff/rig": "0.2.6",
45
+ "@zgeoff/std": "0.4.4",
46
+ "@zgeoff/testing": "0.3.1",
47
47
  "@zgeoff/tools-scripts": "0.0.0",
48
48
  "msw": "2.15.0",
49
49
  "tiny-invariant": "1.3.3",
50
- "tsrs": "0.18.0-ts7.1.0-dev.20260929",
50
+ "tsrs": "0.25.0-ts7.1.0-beta",
51
51
  "typescript": "7.0.2"
52
52
  },
53
53
  "engines": {
@@ -341,8 +341,7 @@ function collectWorkflowRunFindings(context: WorkflowContext): WorkflowFinding[]
341
341
  ];
342
342
  }
343
343
 
344
- // Returns the exit code: 0 when clean or with a warning, since the lint only warns, and 2 when the
345
- // check cannot run.
344
+ // Returns the exit code: 0 when clean, 1 when any fault exists, and 2 when the check cannot run.
346
345
  export function runWorkflowsCommand(args: readonly string[]): number {
347
346
  const paths = parseCLIPaths(args);
348
347
 
@@ -376,8 +375,10 @@ export function runWorkflowsCommand(args: readonly string[]): number {
376
375
 
377
376
  if (findings.length > 0) {
378
377
  process.stdout.write(
379
- `workflows: ${findings.length} ${findings.length === 1 ? 'warning' : 'warnings'}; the workflow lint warns and does not fail yet\n`,
378
+ `workflows: ${findings.length} ${findings.length === 1 ? 'fault' : 'faults'}\n`,
380
379
  );
380
+
381
+ return 1;
381
382
  }
382
383
 
383
384
  return 0;
@@ -402,7 +403,7 @@ function parseCLIPaths(args: readonly string[]): string[] | Error {
402
403
  function formatAnnotation(finding: WorkflowFinding): string {
403
404
  const file = escapeAnnotationData(finding.path).replaceAll(':', '%3A').replaceAll(',', '%2C');
404
405
 
405
- return `::warning file=${file},line=${finding.line}::${escapeAnnotationData(finding.message)}`;
406
+ return `::error file=${file},line=${finding.line}::${escapeAnnotationData(finding.message)}`;
406
407
  }
407
408
 
408
409
  function escapeAnnotationData(text: string): string {