chore(husky): remove deprecated husky.sh sourcing
This commit is contained in:
parent
06aca239f4
commit
2fe2d7fbc6
@ -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
|
||||
|
||||
@ -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
|
||||
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user