husky icon indicating copy to clipboard operation
husky copied to clipboard

Initializing with pnpm creates a pre-commit that always fails git commit

Open HAYASHI-Masayuki opened this issue 1 year ago • 3 comments

When execute pnpm exec husky init, .husky/pre-commit will contain only pnpm, but pnpm, unlike yarn, will return 1 and exit when run without command line options. This causes git commit to always fail.

HAYASHI-Masayuki avatar Jul 20 '24 08:07 HAYASHI-Masayuki