Skip to content

Commit

Permalink
Build: Upgrade husky package to the latest version (#32077)
Browse files Browse the repository at this point in the history
* Upgrade husky package to the latest version

* Migrate husky

* Add prepare script to package.json
  • Loading branch information
RhnSharma authored Jun 8, 2021
1 parent 53311c8 commit 8bc2494
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 263 deletions.
1 change: 1 addition & 0 deletions .husky/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
_
4 changes: 4 additions & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

npx lint-staged
260 changes: 4 additions & 256 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 3 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@
"execa": "4.0.2",
"fast-glob": "2.2.7",
"glob": "7.1.2",
"husky": "3.0.5",
"husky": "6.0.0",
"inquirer": "7.1.0",
"jest": "26.6.3",
"jest-emotion": "10.0.32",
Expand Down Expand Up @@ -280,12 +280,8 @@
"prestorybook:dev": "npm run build:packages",
"storybook:dev": "concurrently \"npm run dev:packages\" \"start-storybook -c ./storybook -p 50240\"",
"env": "wp-scripts env",
"wp-env": "wp-env"
},
"husky": {
"hooks": {
"pre-commit": "lint-staged"
}
"wp-env": "wp-env",
"prepare": "husky install"
},
"lint-staged": {
"package-lock.json": [
Expand Down

0 comments on commit 8bc2494

Please sign in to comment.