Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: confusion on v9 usage with husky init #1535

Open
michealroberts opened this issue Nov 6, 2024 · 1 comment
Open

docs: confusion on v9 usage with husky init #1535

michealroberts opened this issue Nov 6, 2024 · 1 comment

Comments

@michealroberts
Copy link

michealroberts commented Nov 6, 2024

A simple one, but a lot of what is in husky v9 has thrown me ... I'm coming from v8 but some things aren't clear.

When running npx husky init, it seems like we get a .husky/_/** with everything ignored in git history.

I have moved a precommit hook outside to the root of .husky, but the script isn't executed ... I move it inside, and it is...

Yet all the documentation states otherwise.

I'm left scratching my head ... what do we do after npx husky init ... ?

Also, subsequent usage of npx husky init overwrites what is already in that directory, so ... I guess we no longer use the install hook.

Just left very confused from referencing v8, and the docs.

@AllanChain
Copy link

Have you checked out the release note? https://github.com/typicode/husky/releases/tag/v9.0.1 I think the migration guide there is clear.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants