chore: anchor pre-commit hook to repo root

This commit is contained in:
defiQUG
2026-04-24 12:59:40 -07:00
parent 675801449b
commit 702a836fac
+6 -1
View File
@@ -1,4 +1,9 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"
pnpm lint-staged
repo_root="$(CDPATH= cd -- "$(dirname -- "$0")/.." && pwd)"
cd "$repo_root"
# Anchor lint-staged to this repo so commits launched from a parent workspace
# still resolve local tooling and config from the-order.
"$repo_root/node_modules/.bin/lint-staged" --cwd "$repo_root"