Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/wild-lobsters-shake.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"kilo-code": patch
---

fix: configure husky hooks for reliable execution
8 changes: 8 additions & 0 deletions .husky/pre-commit
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
#!/usr/bin/env sh
# Add node_modules/.bin to PATH for local binaries
# Use git to find the repository root reliably
REPO_ROOT="$(git rev-parse --show-toplevel 2>/dev/null || echo "$(dirname -- "$0")/../..")"
if [ -d "$REPO_ROOT/node_modules/.bin" ]; then
export PATH="$REPO_ROOT/node_modules/.bin:$PATH"
fi

branch="$(git rev-parse --abbrev-ref HEAD)"

if [ "$branch" = "main" ]; then
Expand Down
8 changes: 8 additions & 0 deletions .husky/pre-push
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
#!/usr/bin/env sh
# Add node_modules/.bin to PATH for local binaries
# Use git to find the repository root reliably
REPO_ROOT="$(git rev-parse --show-toplevel 2>/dev/null || echo "$(dirname -- "$0")/../..")"
if [ -d "$REPO_ROOT/node_modules/.bin" ]; then
export PATH="$REPO_ROOT/node_modules/.bin:$PATH"
fi

branch="$(git rev-parse --abbrev-ref HEAD)"

if [ "$branch" = "main" ]; then
Expand Down