docs(plans): conversion order, and the two gates that cannot see a .ts file #2498

Merged
jaylouisw merged 1 commit from plan/1124-0037 into main 2026-11-24 00:46:37 +00:00
Owner

Plan only, no code. Adds docs/plans/typescript-conversion-order.md.

Measured on dfb3aee2.

  • scripts/check-node-surface.js:25 scans .js/.mjs/.cjs only, so the two converted engine modules sit outside the gate the docs (docs/TYPESCRIPT.md:110, :301) say holds the Node 18 surface. 0 banned needles in any .ts today.
  • check:module-paths is listed as a gate (docs/TYPESCRIPT.md:298) but CI never runs it; only scripts/premerge-check.js:134 does. It currently resolves 1483 specifiers in 553 files with 0 unresolvable and 1 latent require: engine/segment.ts:118 require('./lag').
  • tsconfig.json:52 omits server/**, web/** and any non-.test .ts under test/.
  • Next conversion proposed: engine/lag.js (542 lines, 7 importers, 6 suites) because it retires that single latent require.

Closes #2488 - already fixed in the tree by #2491 (ci.yml:283-312); the issue is open only because that PR did not name it.

Deliberately left out: cli.js/simulator.js (need a split first), types/, typecheck inside npm test, any product surface.

Plan only, no code. Adds `docs/plans/typescript-conversion-order.md`. Measured on `dfb3aee2`. - `scripts/check-node-surface.js:25` scans `.js`/`.mjs`/`.cjs` only, so the two converted engine modules sit outside the gate the docs (`docs/TYPESCRIPT.md:110`, `:301`) say holds the Node 18 surface. 0 banned needles in any `.ts` today. - `check:module-paths` is listed as a gate (`docs/TYPESCRIPT.md:298`) but CI never runs it; only `scripts/premerge-check.js:134` does. It currently resolves 1483 specifiers in 553 files with 0 unresolvable and 1 latent require: `engine/segment.ts:118 require('./lag')`. - `tsconfig.json:52` omits `server/**`, `web/**` and any non-`.test` `.ts` under `test/`. - Next conversion proposed: `engine/lag.js` (542 lines, 7 importers, 6 suites) because it retires that single latent require. Closes #2488 - already fixed in the tree by #2491 (`ci.yml:283-312`); the issue is open only because that PR did not name it. Deliberately left out: `cli.js`/`simulator.js` (need a split first), `types/`, `typecheck` inside `npm test`, any product surface.
docs(plans): the conversion has no order, and two gates cannot see a .ts file
All checks were successful
CI / Typecheck (pull_request) Successful in 22s
PR rebase / Rebase onto main and arm auto-merge (pull_request) Successful in 12s
CI / Server smoke and Docker build (pull_request) Successful in 50s
CI / Test (Node 22) (pull_request) Successful in 1m0s
CI / Test (Node 24) (pull_request) Successful in 1m2s
CI / Arm auto-merge (pull_request) Successful in 4s
3442b30a8f
forgejo-actions scheduled this pull request to auto merge when all checks succeed 2026-11-24 00:43:11 +00:00
Sign in to join this conversation.
No description provided.