Skip to content

Commit

Permalink
Upgrade to husky@5
Browse files Browse the repository at this point in the history
  • Loading branch information
perrin4869 committed Feb 9, 2021
1 parent 82da7a4 commit cc396a6
Show file tree
Hide file tree
Showing 5 changed files with 54 additions and 56 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 --no-install lint-staged
5 changes: 0 additions & 5 deletions .huskyrc.json

This file was deleted.

92 changes: 43 additions & 49 deletions package-lock.json

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

8 changes: 6 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,13 +56,14 @@
"eslint-plugin-prettier": "3.3.1",
"eslint-plugin-simple-import-sort": "7.0.0",
"fetch-mock": "9.11.0",
"husky": "^4.3.8",
"husky": "^5.0.9",
"lint-staged": "^10.5.4",
"mocha": "8.2.1",
"node-fetch": "2.6.1",
"np": "7.2.0",
"nyc": "15.1.0",
"path-to-regexp": "6.2.0",
"pinst": "^2.1.4",
"prettier": "2.2.1",
"pretty-quick": "^3.1.0",
"sinon": "9.2.4",
Expand Down Expand Up @@ -93,6 +94,9 @@
"preversion": "npm test",
"docs": "typedoc --options typedoc.json",
"copy": "cp -rf package.json CHANGELOG.md LICENSE README.md dist",
"release": "np --no-yarn --no-publish --no-release-draft"
"release": "np --no-yarn --no-publish --no-release-draft",
"postinstall": "husky install",
"prepublishOnly": "pinst --disable",
"postpublish": "pinst --enable"
}
}

0 comments on commit cc396a6

Please sign in to comment.