tpmjs/lefthook.yml
Ajax Davis 46c3bcbff7 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>
2025-12-04 17:16:42 +10:00

16 lines
399 B
YAML

pre-commit:
parallel: true
commands:
format:
glob: "*.{ts,tsx,js,jsx,json,md}"
run: pnpm biome check --write --no-errors-on-unmatched --files-ignore-unknown=true {staged_files}
stage_fixed: true
type-check:
# Only type-check packages with staged changes
run: pnpm turbo type-check --filter='...[HEAD]'
pre-push:
commands:
test:
run: pnpm test