Skip to content

chore: include type-checking in the standard check command - #3417

Closed
setchy wants to merge 1 commit into
mainfrom
chore/add-typecheck-to-check
Closed

setchy wants to merge 1 commit into
mainfrom
chore/add-typecheck-to-check

Conversation

@setchy

@setchy setchy commented Oct 14, 2026

Copy link
Copy Markdown
Member

Summary

Makes the standard check command type-check the codebase, closing the gap between the documented local pre-PR command and CI.

  • check → vp check && vp exec tsc --noEmit; check:fix likewise.
  • Reuses the exact command CI's test.yml already runs.
  • CONTRIBUTING.md already names pnpm check, so its guidance becomes accurate rather than changing — and because CI's lint.yml runs vp run check, that job now type-checks too.

No production code change.

Verification

  • pnpm check on a clean tree — format + lint + type-check all pass
  • Injected type error (const x: number = 'not a number') — pnpm check now fails (exit 1) with TS2322; probe removed
  • pnpm test — 188 files, 1901 tests passing

`pnpm check` (the command CONTRIBUTING tells contributors to run before
pushing) ran only formatting and linting, while CI also runs `tsc --noEmit`
in a separate step. So a local `pnpm check` could pass and CI then fail on a
type error.

Fold `vp exec tsc --noEmit` into `check` and `check:fix`, reusing the exact
command CI runs. `CONTRIBUTING.md` already names `pnpm check`, so no doc
change is needed; CI's `vp run check` (lint.yml) now type-checks too.
@setchy
setchy requested a review from afonsojramos as a code owner October 14, 2026 11:36
@github-actions github-actions Bot added the chore Miscellaneous tasks label Oct 14, 2026
@sonarqubecloud

Copy link
Copy Markdown

@setchy
setchy marked this pull request as draft October 14, 2026 11:54
@setchy

setchy commented Oct 14, 2026

Copy link
Copy Markdown
Member Author

Superseded by #3420. Rather than composing vp check && vp exec tsc --noEmit, #3420 enables Vite+'s native type-aware path (lint.options.typeAware/typeCheck) so vp check runs the type check itself — the same local/CI gap gets closed without a second, redundant tsc invocation.

@setchy setchy closed this Oct 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

chore Miscellaneous tasks

Development

Successfully merging this pull request may close these issues.

1 participant