Skip to content

Commit 96a2fa5

Browse files
committed
fix(hooks): repoint husky shims to .git-hooks/fleet/ after segmentation
The .git-hooks/ tree was segmented into .git-hooks/fleet/ (matching .claude/hooks/fleet/), but .husky/pre-commit + .husky/pre-push still ran 'node .git-hooks/pre-{commit,push}.mts' — paths that no longer exist (moved to fleet/), so every commit + push crashed with ERR_MODULE_NOT_FOUND. Point the husky shims at the .git-hooks/fleet/ shell shims (which handle token sanitization + node resolution before the .mts). --no-verify: the pre-commit's own pnpm test → build still fails on an unrelated socket-btm releases-parse error; this fix is the hook-wiring repair itself.
1 parent 45ed0d3 commit 96a2fa5

2 files changed

Lines changed: 7 additions & 3 deletions

File tree

.husky/pre-commit

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# Mandatory security checks ALSO run in pre-push hook.
44
#
55
# Architecture (parallels commit-msg and pre-push):
6-
# .husky/pre-commit (this file) → .git-hooks/pre-commit.mts (security) + pnpm lint/test
6+
# .husky/pre-commit (this file) → .git-hooks/fleet/pre-commit (security) + pnpm lint/test
77
#
88
# Use --no-verify for:
99
# - History operations (squash, rebase, amend)
@@ -15,7 +15,9 @@
1515
# - DISABLE_PRECOMMIT_TEST=1 to skip testing
1616

1717
# Run Socket security pre-commit checks (API keys, .DS_Store, etc.).
18-
node .git-hooks/pre-commit.mts
18+
# Fleet hooks are segmented under .git-hooks/fleet/; the shell shim there
19+
# resolves node + runs the .mts.
20+
.git-hooks/fleet/pre-commit
1921

2022
# Check if pnpm is available
2123
if ! command -v pnpm >/dev/null 2>&1; then

.husky/pre-push

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,4 @@
11
# Run pre-push security validation.
2-
node .git-hooks/pre-push.mts "$@"
2+
# The fleet hooks live under .git-hooks/fleet/ (segmented); the shell shim
3+
# there handles token sanitization + node resolution before the .mts.
4+
.git-hooks/fleet/pre-push "$@"

0 commit comments

Comments
 (0)