From 508514947db5f1187c0021d457696870eb55f09e Mon Sep 17 00:00:00 2001 From: jdx <216188+jdx@users.noreply.github.com> Date: Sun, 22 Mar 2026 15:41:00 +0000 Subject: [PATCH] fix: run npm install in pre-commit hook before build Ensures node_modules are up to date before rebuilding dist/, preventing unintended dist changes from stale dependencies. Co-Authored-By: Claude Opus 4.6 (1M context) --- .husky/pre-commit | 1 + 1 file changed, 1 insertion(+) diff --git a/.husky/pre-commit b/.husky/pre-commit index 5370eef..b934798 100755 --- a/.husky/pre-commit +++ b/.husky/pre-commit @@ -1,4 +1,5 @@ # shellcheck disable=SC1091 +npm install npm run all git add dist