docs: the any scan is npm run check:no-any, the script that exists #2486

Merged
jaylouisw merged 1 commit from docs/1123-2317 into main 2026-11-23 23:38:48 +00:00
Owner

docs/CI.md and docs/TYPESCRIPT.md (twice) told a reader to run npm run check:any.

The truth, from package.json: there is no check:any. The scan is

"check:no-any": "node scripts/check-no-any.ts"

so the documented command exits 1:

npm error Missing script: "check:any"
npm error Did you mean this?
npm error   npm run check:no-any # run the "check:no-any" package script

The name was written into both pages in #2477 and never existed in package.json. Fixed in all three places (local-checks block in CI.md, the Running the typecheck block and the Where this is enforced table in TYPESCRIPT.md). The npm run typecheck line was already correct (tsc --noEmit && node scripts/check-no-any.ts).

Docs only - no code or script added.

Guards: syntax-check 547 files OK; check-control-bytes clean; docs-show-commands 83 forms / 166 commands, 7 passed 0 failed; docs-cli-transcript 9/0; help-completeness 8/0; doc-catalog-counts 43/43; help-key-works-in-every-prompt 10/0; doc-citations 11/0.

`docs/CI.md` and `docs/TYPESCRIPT.md` (twice) told a reader to run `npm run check:any`. **The truth, from `package.json`:** there is no `check:any`. The scan is ``` "check:no-any": "node scripts/check-no-any.ts" ``` so the documented command exits 1: ``` npm error Missing script: "check:any" npm error Did you mean this? npm error npm run check:no-any # run the "check:no-any" package script ``` The name was written into both pages in #2477 and never existed in `package.json`. Fixed in all three places (local-checks block in CI.md, the *Running the typecheck* block and the *Where this is enforced* table in TYPESCRIPT.md). The `npm run typecheck` line was already correct (`tsc --noEmit && node scripts/check-no-any.ts`). Docs only - no code or script added. Guards: syntax-check 547 files OK; check-control-bytes clean; docs-show-commands 83 forms / 166 commands, 7 passed 0 failed; docs-cli-transcript 9/0; help-completeness 8/0; doc-catalog-counts 43/43; help-key-works-in-every-prompt 10/0; doc-citations 11/0.
docs: the any scan is npm run check:no-any, the script that exists
All checks were successful
CI / Server smoke and Docker build (pull_request) Successful in 13s
PR rebase / Rebase onto main and arm auto-merge (pull_request) Successful in 12s
CI / Typecheck (pull_request) Successful in 21s
CI / Test (Node 22) (pull_request) Successful in 50s
CI / Test (Node 24) (pull_request) Successful in 51s
CI / Arm auto-merge (pull_request) Successful in 3s
219ea89bf7
docs/CI.md and docs/TYPESCRIPT.md (twice) told a reader to run `npm run check:any`. package.json has no such script - the scan is `check:no-any`, mapped to scripts/check-no-any.ts - so the documented command exits 1 with 'Missing script: check:any', and npm's own suggestion names the right one. The name was written into the docs in #2477 and never existed in package.json. Fixed in all three places; the typecheck line (`tsc --noEmit && node scripts/check-no-any.ts`) was already right.
forgejo-actions scheduled this pull request to auto merge when all checks succeed 2026-11-23 23:23:01 +00:00
jaylouisw deleted branch docs/1123-2317 2026-11-23 23:38:49 +00:00
Sign in to join this conversation.
No description provided.