Skip to content

Commit 5ac2841

Browse files
Chris Shellenbargerclaude
andcommitted
Add web TypeScript check to Lefthook pre-commit
The pre-commit hook was only running tsc for the root project. Web TypeScript errors could slip through to CI. Now runs cd web && tsc -b when web/**/*.{ts,tsx} files are staged. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 1fe887d commit 5ac2841

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

lefthook.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,6 @@ pre-commit:
77
stage_fixed: true
88
typecheck:
99
run: npx tsc --noEmit
10+
typecheck-web:
11+
glob: "web/**/*.{ts,tsx}"
12+
run: cd web && npx tsc -b

0 commit comments

Comments
 (0)