About the migration, I don't understand the reasoning behind changing the way the configuration works now. Previously I was able to just do run-s foo bar (using npm-run-all) on husky's configuration, and that worked with npm, yarn, and pnpm.
Now I have to create a new file for every hook, in a new folder, and I have to specify either npm/npx, or pnpm/pnpx, or yarn... so I can't be "package manager agnostic".
Maybe the reason is related to performance, but I feel that performance is at the cost of flexibility and file clutter.
I'm in the same boat, looking for an alternative for the time being. Actually, I've never had any problems about husky so far, their configuration interface was superb but now it tries to solve a problem that doesn't exist.
About the migration, I don't understand the reasoning behind changing the way the configuration works now. Previously I was able to just do
run-s foo bar
(usingnpm-run-all
) on husky's configuration, and that worked withnpm
,yarn
, andpnpm
.Now I have to create a new file for every hook, in a new folder, and I have to specify either
npm/npx
, orpnpm/pnpx
, oryarn
... so I can't be "package manager agnostic".Maybe the reason is related to performance, but I feel that performance is at the cost of flexibility and file clutter.
Yeah, the ease of setting up hooks with husky+lint staged is a nightmare now when they used to be a breeze to set up.
My solution for now is to keep using v4 until maybe v6 or an alternative package similar to v4 is available.
I'm in the same boat, looking for an alternative for the time being. Actually, I've never had any problems about husky so far, their configuration interface was superb but now it tries to solve a problem that doesn't exist.
I went back to v4 once I have discover that
I totally agree. Having hooks configured in package.json was very straightforward.
Technically it was zero extra files config (as package.json stays in project anyway).
Now it's totally not clear to me where config should live, and polluting repo with extra config files doesn't feel good.