From a39f28546afd2916caa372c9405771a5a8f63155 Mon Sep 17 00:00:00 2001 From: Ajax Davis Date: Thu, 4 Dec 2025 17:16:42 +1000 Subject: [PATCH] perf: only type-check changed packages in pre-commit hook MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- lefthook.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lefthook.yml b/lefthook.yml index 697b02f..f10b730 100644 --- a/lefthook.yml +++ b/lefthook.yml @@ -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: