pr-checkmate 1.22.0 → 1.22.1

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
@@ -1,9 +1,7 @@
1
1
  # ♟️ PR CheckMate
2
2
 
3
3
  ![Build](https://img.shields.io/github/actions/workflow/status/Mybono/sdk_automation/publish.yml?branch=main&label=CI&color=blue)
4
- ![npm](https://img.shields.io/npm/v/pr-checkmate?color=blue&label=npm)
5
4
  ![License](https://img.shields.io/badge/license-Proprietary-lightgrey)
6
-
7
5
  ![ESLint](https://img.shields.io/badge/ESLint-10-4B32C3?logo=eslint&logoColor=white)
8
6
  ![Prettier](https://img.shields.io/badge/Prettier-3-F7B93E?logo=prettier&logoColor=white)
9
7
  ![TypeScript](https://img.shields.io/badge/TypeScript-6-3178C6?logo=typescript&logoColor=white)
@@ -32,6 +32,15 @@ exports.typecheckCheck = {
32
32
  return node_fs_1.default.existsSync(node_path_1.default.join(ctx.cwd, 'tsconfig.json'));
33
33
  },
34
34
  async run(ctx) {
35
+ // tsc needs the project's installed type declarations — everything listed in
36
+ // tsconfig's `types`, plus every imported @types package — to resolve. When the
37
+ // project's dependencies aren't installed (e.g. a CI step that runs pr-checkmate
38
+ // via npx without a prior `npm ci`), tsc emits a wall of cryptic TS2688
39
+ // "cannot find type definition file" errors that look like code problems but are
40
+ // really a setup gap. Skip with an actionable message instead of failing the PR.
41
+ if (!node_fs_1.default.existsSync(node_path_1.default.join(ctx.cwd, 'node_modules'))) {
42
+ return (0, types_1.skip)('project dependencies not installed (no node_modules) — run `npm ci` before typecheck');
43
+ }
35
44
  const tscBin = resolveTsc(ctx.cwd);
36
45
  const result = await (0, execa_1.execa)(process.execPath, [tscBin, '--noEmit'], {
37
46
  cwd: ctx.cwd,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pr-checkmate",
3
- "version": "1.22.0",
3
+ "version": "1.22.1",
4
4
  "description": "Automated PR quality checks: linting, formatting, dependency analysis, and spellcheck",
5
5
  "keywords": [
6
6
  "github-actions",