mirror of
https://github.com/jdx/mise-action.git
synced 2026-05-15 06:10:32 +00:00
fix: run npm install in pre-commit hook before build (#410)
## 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)
<!-- CURSOR_SUMMARY -->
---
> [!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.
>
> <sup>Written by [Cursor
Bugbot](https://cursor.com/dashboard?tab=bugbot) for commit
9b08810a42. This will update automatically
on new commits. Configure
[here](https://cursor.com/dashboard?tab=bugbot).</sup>
<!-- /CURSOR_SUMMARY -->
---------
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
89c67a39ab
commit
0cc0f19036
1 changed files with 1 additions and 0 deletions
|
|
@ -1,4 +1,5 @@
|
|||
# shellcheck disable=SC1091
|
||||
|
||||
npm ci
|
||||
npm run all
|
||||
git add dist
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue