From 0cc0f1903615c9dac89b7dea8a31a86bfd9dab51 Mon Sep 17 00:00:00 2001 From: jdx <216188+jdx@users.noreply.github.com> Date: Sun, 22 Mar 2026 10:54:05 -0500 Subject: [PATCH] fix: run npm install in pre-commit hook before build (#410) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ## Summary - Adds `npm install` before `npm run all` in the husky pre-commit hook - Prevents stale `node_modules` from producing unintended `dist/` changes 🤖 Generated with [Claude Code](https://claude.com/claude-code) --- > [!NOTE] > **Low Risk** > Low risk change confined to developer tooling; it only affects local pre-commit behavior and should not impact runtime code. > > **Overview** > Ensures the pre-commit hook runs `npm ci` before `npm run all`, so builds use a fresh/consistent `node_modules` prior to staging `dist` changes. > > Written by [Cursor Bugbot](https://cursor.com/dashboard?tab=bugbot) for commit 9b08810a42f4771ab14fa225081beed77219e760. This will update automatically on new commits. Configure [here](https://cursor.com/dashboard?tab=bugbot). --------- 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..3287ce3 100755 --- a/.husky/pre-commit +++ b/.husky/pre-commit @@ -1,4 +1,5 @@ # shellcheck disable=SC1091 +npm ci npm run all git add dist