Convert all scripts/ to typescript - #233
Conversation
|
I've thoroughly reviewed the PR. Let me summarize my findings. There are no actionable, blocking issues introduced by this change:
One non-blocking observation worth raising to the author (not an inline finding, since it's a repo-wide concern rather than a specific defect on a changed line): The approach depends on Node ≥22.18.0 for native type stripping, but the repo adds no LGTM! |
51936c5 to
1f70be0
Compare
Preview:
|
|
Pre-existing and unmodified — out of scope. My review is complete. Let me summarize findings. I verified the substantive claims:
No actionable, blocking issues introduced by this change. This aligns with the prior review's conclusion; I found nothing additional to add as inline findings. LGTM! |
1f70be0 to
4bbde03
Compare
|
The PR file list marked I've independently verified all the substantive aspects of this PR: Verified:
The one non-blocking observation (no I found no actionable, blocking issues introduced by this change. LGTM! |
4bbde03 to
31ce73b
Compare
|
Base: New (run-dev-server.ts:161-162): The difference: base filtered out I've completed a thorough independent review. Let me summarize my findings. Review SummaryI independently verified this PR (converting all Verified correct:
Non-blocking (out of scope / already raised):
I found no actionable, blocking issues introduced by this change. LGTM! |
31ce73b to
e9a0657
Compare
|
Failed to check permissions for user Maximo-Guk: HttpError: No server is currently available to service your request. Sorry about that. Please try resubmitting your request and contact us if the problem persists. |
|
@Maximo-Guk Bonk workflow failed. Check the logs for details. View workflow run · To retry, trigger Bonk again. |
|
@Maximo-Guk Bonk workflow failed. Check the logs for details. View workflow run · To retry, trigger Bonk again. |
e9a0657 to
2a2329a
Compare
Preview:
|
2a2329a to
31ce73b
Compare
31ce73b to
a2a13df
Compare
|
bonk break glass |
…ippable typescript, and colocate its tests
a2a13df to
9c4d5c9
Compare
…ippable typescript, and colocate its tests (cloudflare#233)
#233 moved `scripts/` to type-stripped TypeScript but left four `.mjs` files behind: the two gatekeeper `build-app` scripts, workshop-backend's browser-runtime builder, and the oxlint plugin. They now run as `.ts` and are type-checked by `pnpm types:scripts`. - `build-browser-runtime` moves into `workshop-backend/scripts/`, beside the other Node-only tool that `scripts/tsconfig.json` already covers. - The oxlint plugin is typed against `@oxlint/plugins`, added as a type-only dev dependency pinned to the version Vite+ pins; its test fails if the two drift. oxlint loads a `.ts` plugin as-is. - Stale references to already-converted `.mjs` files are corrected. Co-authored-by: Claude Code <noreply@anthropic.com>
Running TypeScript Natively
Rather than having a bunch of untyped scripts, we can go ahead and convert all of them to typescript to align with the rest of the codebase. We don't even need a build step, simply by adding erasableSyntaxOnly to our tsconfig, and using node >= 22.18.0