Repository navigation
Replies: 3 comments 2 replies
|
maybe we can have a fix just using |
|
I'm suprised, it's not a new syntax 🤔 |
|
Hi @BennyAlex Husky v9+ supports Bun natively. The issue is likely that your prepare script in package.json is using npx instead of bunx. Install & Init This creates .husky/pre-commit and updates your prepare script. Fix your package.json json { "scripts": { "prepare": "bun run husky" } } If your prepare script still says npx husky or husky install, that's the problem — Bun's bunx is the equivalent of npx. Replace it and run bun install again. On older Husky versions (< v9) bun add --dev husky@latest bunx husky init The hooks themselves (.husky/pre-commit, etc.) are plain shell scripts — they work the same regardless of whether you use npm, pnpm, or Bun as your package manager. |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
I use husky with bun (installed in WSL) and always seeing this error when starting the server:
I this a problem with bun + husky?
All reactions