···4455git diff --cached --name-only --diff-filter=ACMR -z >"$staged_files"
6677-# NOTE: TypeScript typecheck temporarily disabled due to 29 existing errors
88-# that need router configuration and API updates. Run `pnpm typecheck` manually.
99-# TODO: Fix remaining type errors and re-enable typecheck before commits.
1010-1111-# Run type checking (informational only for now)
1212-# pnpm typecheck || {
1313-# rm -f "$staged_files"
1414-# exit 1
1515-# }
77+# Run type checking first
88+pnpm typecheck || {
99+ rm -f "$staged_files"
1010+ exit 1
1111+}
16121713# Run linting/formatting
1814pnpm check:write || {