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>
16 lines
399 B
YAML
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
|