build: Add post-checkout hook to run bun install

This commit is contained in:
2026-03-21 23:25:30 +05:30
parent 3bcdc0a90f
commit 545f06b293
+9
View File
@@ -0,0 +1,9 @@
#!/usr/bin/env bash
# Post-checkout hook to run bun install when switching branches or checking out files
# This ensures dependencies are always up to date
# Only run if package.json or bun.lock exist (indicating a Node/Bun project)
if [ -f "package.json" ] || [ -f "bun.lock" ]; then
echo "Running bun install..."
bun install
fi