husky: Installation with pnpm doesn't setup the hooks

Hi there, are you planning to support pnpm installation?

About this issue

  • Original URL
  • State: closed
  • Created 8 years ago
  • Comments: 18 (5 by maintainers)

Commits related to this issue

Most upvoted comments

Happy to support a project like pnpm 😄 🎉

@typicode thanks! Finally, I was able to add husky to the pnpm repo https://github.com/pnpm/pnpm/commit/bd38fb50b548f3df1a05ff48fae208b268ecdde5

There is a new issue when using husky with pnpm and I am not sure we can fix it on the pnpm side.

Husky does not install git hooks if it detects more than 1 node_modules in the husky directory path (related code: https://github.com/typicode/husky/blob/a2da709b676fb75903922ab733d139006caf8824/src/index.js#L195)

When packages are installed with pnpm, all deps have exactly 2 node_modules in their directory path.

Related issue at pnpm: https://github.com/pnpm/pnpm/issues/669