Files
shockbot/.husky/pre-commit
T
Colin McDonnell 0822a265c3 Update precommit
2025-12-16 22:44:15 -08:00

14 lines
429 B
Plaintext
Executable File

# Check if lockfile needs updating
if git diff --cached --name-only | grep -q "^package.json$"; then
echo "🔒 Updating lockfile..."
pnpm lock
git add pnpm-lock.yaml
fi
# Check if entry needs rebuilding (entry.ts, esbuild.config.js, or any .ts files)
if git diff --cached --name-only | grep -qE "^(entry\.ts|esbuild\.config\.js|.*\.ts)$"; then
echo "🔨 Building action..."
pnpm build
git add entry
fi