From 2fe2d7fbc63ed69ccf5ba79c0523c0a63d10cfed Mon Sep 17 00:00:00 2001 From: Saravana Achu Mac Date: Sat, 14 Feb 2026 09:56:40 -0800 Subject: [PATCH] chore(husky): remove deprecated husky.sh sourcing --- .husky/pre-commit | 1 - .husky/pre-push | 2 -- scripts/setup-husky.sh | 4 +--- 3 files changed, 1 insertion(+), 6 deletions(-) diff --git a/.husky/pre-commit b/.husky/pre-commit index 5e09735a..83204b25 100755 --- a/.husky/pre-commit +++ b/.husky/pre-commit @@ -1,5 +1,4 @@ #!/usr/bin/env sh -. "$(dirname -- "$0")/_/husky.sh" # Check if Husky is disabled via environment variable if [ "$HUSKY_ENABLED" = "false" ]; then diff --git a/.husky/pre-push b/.husky/pre-push index 5379408b..b73d55a3 100755 --- a/.husky/pre-push +++ b/.husky/pre-push @@ -1,5 +1,4 @@ #!/usr/bin/env sh -. "$(dirname -- "$0")/_/husky.sh" # Check if Husky is disabled via environment variable if [ "$HUSKY_ENABLED" = "false" ]; then @@ -10,4 +9,3 @@ fi echo "🔐 Scanning tracked files for secrets before push..." bash scripts/secret-scan-repo.sh - diff --git a/scripts/setup-husky.sh b/scripts/setup-husky.sh index 99ecf3e6..4ef0ba6c 100755 --- a/scripts/setup-husky.sh +++ b/scripts/setup-husky.sh @@ -13,7 +13,6 @@ mkdir -p .husky # Create pre-commit hook with HUSKY_ENABLED flag cat > .husky/pre-commit << 'EOF' #!/usr/bin/env sh -. "$(dirname -- "$0")/_/husky.sh" # Check if Husky is disabled via environment variable if [ "$HUSKY_ENABLED" = "false" ]; then @@ -28,13 +27,12 @@ bash scripts/secret-scan-staged.sh echo "🐶 Running pre-commit hooks for common platform..." # Run lint-staged on staged files -pnpm exec lint-staged +npx lint-staged EOF # Create pre-push hook with HUSKY_ENABLED flag cat > .husky/pre-push << 'EOF' #!/usr/bin/env sh -. "$(dirname -- "$0")/_/husky.sh" # Check if Husky is disabled via environment variable if [ "$HUSKY_ENABLED" = "false" ]; then