You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I use to install Husky (v8) in a custom directory: .env/git/hooks, and everything works fine.
I'd like to use the version 9.x and I read the documentation https://typicode.github.io/husky/how-to.html#project-not-in-git-root-directory
I have run: npm pkg set scripts.prepare="husky init .env/git/hooks" but once I run npx husky init the package.json is overwritten.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I use to install Husky (v8) in a custom directory:
.env/git/hooks
, and everything works fine.I'd like to use the version 9.x and I read the documentation https://typicode.github.io/husky/how-to.html#project-not-in-git-root-directory
I have run:
npm pkg set scripts.prepare="husky init .env/git/hooks"
but once I runnpx husky init
the package.json is overwritten.I am missing something.
Thank you
Beta Was this translation helpful? Give feedback.
All reactions