chore(husky): remove deprecated husky.sh sourcing

This commit is contained in:
Saravana Achu Mac 2026-02-14 09:56:40 -08:00
parent 06aca239f4
commit 2fe2d7fbc6
3 changed files with 1 additions and 6 deletions

View File

@ -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

View File

@ -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

View File

@ -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