`husky install` vs `husky init`
What is the reason for these breaking API changes?
@developer239 I think , Husky team realized that husky install was confusing people. Like, when you hear "install" you think you're installing something new, right? actually it was just setting up your project to use husky.
So they changed it to husky init because that's what most other tools use when you're starting something fresh
in my way i think it's just make more sense.
How many projects do you think need to be updated because of this change?
You're absolutely right! 😅 probably millions of projects need updating, I think Husky is used in 1.5M+ GitHub repos. The good thing would be old projects still work (just show warnings), and the fix is literally one line in package.json. But yeah, that's a LOT of codebases affected by this change. Sometimes maintainers have to make tough calls for long-term improvements, but the scale here is definitely huge.
husky init nukes my package.json "prepare": "husky init || true" and my .husky/pre-commit husky install leaves my package.json "prepare": "husky install || true" and my .husky/pre-commit alone
For now I would use the husky install method so it automatically sets up without nuking your configs when you do a npm install. prepare": "husky install || true