typicode / husky

Git hooks made easy 🐶 woof!
https://typicode.github.io/husky
MIT License
31.83k stars 1k forks source link

Prepare script if project is outside .git root directory #1445

Open DannyTh1 opened 4 weeks ago

DannyTh1 commented 4 weeks ago

Troubleshoot

If you're migrating from husky 4, see: https://typicode.github.io/husky/migrate-from-v4.html

Context

aabanaag commented 1 week ago

Any update on how to achieve this? I have the same setup and would like to be able to use the new version of husky

aabanaag commented 1 week ago

I was able to fix this by doing prepare: cd .. && husky then on my end I'm using bun so my pre-commit should be cd src && bunx bun lint-staged