From 545f06b2936086c08b3c83461c9567a8a0e449d9 Mon Sep 17 00:00:00 2001 From: bendtherules Date: Sat, 21 Mar 2026 23:25:30 +0530 Subject: [PATCH] build: Add post-checkout hook to run bun install --- .githooks/post-checkout | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100755 .githooks/post-checkout diff --git a/.githooks/post-checkout b/.githooks/post-checkout new file mode 100755 index 0000000..04671fe --- /dev/null +++ b/.githooks/post-checkout @@ -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 \ No newline at end of file