Skip to content

Quickly migrate your hooks from husky v4 to husky@latest

License

Notifications You must be signed in to change notification settings

char5280/husky-4-to-8

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

husky-4-to-5

Easily migrate your husky 4 config to husky 5

While it should cover most basic migrations, it's recommended to have a look at husky 5 documentation.

Usage

If you're using using npm in your project:

npx github:typicode/husky-4-to-5 --package-manager npm

If you're using using yarn in your project:

npx github:typicode/husky-4-to-5 --package-manager yarn

What it does

  1. Installs husky 5
  2. Installs pinst if package.json > private field isn't true
  3. Creates husky 5 hooks based on husky 4 config
  4. Updates package.json > scripts

husky-4-to-5 will not remove old config files (.huskyrc*) or package.json > husky field.

Clean

If there was error during the process, you can clean things up by running:

rm -rf .husky && git config --unset core.hooksPath

About

Quickly migrate your hooks from husky v4 to husky@latest

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 55.1%
  • TypeScript 43.5%
  • Shell 1.4%