diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 9d60c6b..d84cebd 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -87,7 +87,7 @@ repos: # Frontend: TypeScript typecheck - id: typescript-typecheck name: TypeScript typecheck - entry: bash -lc "cd frontend && npx --yes tsc --noEmit" + entry: bash -lc "cd frontend && npx --yes tsc -b --noEmit" language: system pass_filenames: false files: ^frontend/ diff --git a/changelog/33.trivial.md b/changelog/33.trivial.md new file mode 100644 index 0000000..68e0c3f --- /dev/null +++ b/changelog/33.trivial.md @@ -0,0 +1 @@ +Corrected the pre-commit TypeScript check to use project-reference build mode (`tsc -b`), so build-breaking type errors are caught before they reach CI.