#!/bin/bash echo "๐Ÿ” Running pre-commit checks..." # Check for forbidden author mentions /Users/dax/Documents/GitHub/Filamenteka/.git/hooks/pre-commit-author-check if [ $? -ne 0 ]; then exit 1 fi # Run security check echo "๐Ÿ” Checking for credential leaks..." npm run security:check if [ $? -ne 0 ]; then echo "โŒ Security check failed!" exit 1 fi # Run build test echo "๐Ÿ—๏ธ Testing build..." node scripts/test-build.js if [ $? -ne 0 ]; then echo "โŒ Build test failed!" exit 1 fi # Run tests echo "๐Ÿงช Running tests..." npm test -- --passWithNoTests if [ $? -ne 0 ]; then echo "โŒ Tests failed!" exit 1 fi echo "โœ… All pre-commit checks passed!"