perf: only type-check changed packages in pre-commit hook
Use Turborepo's --filter='...[HEAD]' to only type-check packages with staged changes instead of all 21 packages. This reduces pre-commit hook time from ~30s to ~3s for single-package changes. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
parent
b4e22723bb
commit
a39f28546a
1 changed files with 2 additions and 1 deletions
|
|
@ -7,7 +7,8 @@ pre-commit:
|
|||
stage_fixed: true
|
||||
|
||||
type-check:
|
||||
run: pnpm type-check
|
||||
# Only type-check packages with staged changes
|
||||
run: pnpm turbo type-check --filter='...[HEAD]'
|
||||
|
||||
pre-push:
|
||||
commands:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue