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:
Ajax Davis 2025-12-04 17:16:42 +10:00
parent b9269c5574
commit 46c3bcbff7

View file

@ -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: