Skip to content
This repository has been archived by the owner on Jan 16, 2024. It is now read-only.

Commit

Permalink
chore: Upgrade husky v4 to v6 (#80)
Browse files Browse the repository at this point in the history
  • Loading branch information
Kunal Nagar committed Jun 12, 2021
1 parent 68de010 commit cd37ff6
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 8 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
10 changes: 3 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,8 @@
"build": "tsc",
"test": "ts-mocha -p tsconfig.json tests/**/*.spec.ts -t 150000",
"test:custom": "start-server-and-test 'yarn start' http://localhost:3000 'yarn test'",
"semantic-release": "semantic-release"
},
"husky": {
"hooks": {
"pre-commit": "lint-staged"
}
"semantic-release": "semantic-release",
"prepare": "husky install"
},
"lint-staged": {
"package.json": [
Expand Down Expand Up @@ -70,7 +66,7 @@
"eslint-plugin-import": "2.23.4",
"eslint-plugin-prettier": "3.4.0",
"eslint-plugin-simple-import-sort": "7.0.0",
"husky": "6.0.0",
"husky": "^6.0.0",
"lint-staged": "11.0.0",
"mocha": "9.0.0",
"prettier": "2.3.1",
Expand Down
2 changes: 1 addition & 1 deletion yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2611,7 +2611,7 @@ humanize-ms@^1.2.1:
dependencies:
ms "^2.0.0"

husky@6.0.0:
husky@^6.0.0:
version "6.0.0"
resolved "https://registry.yarnpkg.com/husky/-/husky-6.0.0.tgz#810f11869adf51604c32ea577edbc377d7f9319e"
integrity sha512-SQS2gDTB7tBN486QSoKPKQItZw97BMOd+Kdb6ghfpBc0yXyzrddI0oDV5MkDAbuB4X2mO3/nj60TRMcYxwzZeQ==
Expand Down

0 comments on commit cd37ff6

Please sign in to comment.