CI tsc step swallows type errors with '|| true' #57

Closed
opened 2026-08-11 19:06:27 +00:00 by Mark · 0 comments
Owner

In .forgejo/workflows/ci.yml the step npx tsc --noEmit 2>&1 || true never fails the build — the || true discards all type errors. The subsequent npm run build does run tsc -b so type errors are caught there eventually, but the explicit tsc check is dead code and gives a false sense of coverage. Remove the || true so the step actually enforces types.

In .forgejo/workflows/ci.yml the step `npx tsc --noEmit 2>&1 || true` never fails the build — the `|| true` discards all type errors. The subsequent `npm run build` does run `tsc -b` so type errors are caught there eventually, but the explicit tsc check is dead code and gives a false sense of coverage. Remove the `|| true` so the step actually enforces types.
Mark 2026-08-14 00:33:08 +00:00
Sign in to join this conversation.
No description provided.