Skip to content

Commit

Permalink
update husky to 5
Browse files Browse the repository at this point in the history
  • Loading branch information
Agney committed Mar 13, 2021
1 parent fc93961 commit 7ee1e13
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 11 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"

yarn pretty-quick --staged
16 changes: 6 additions & 10 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,22 +6,18 @@
"start": "yarn workspace @agney/playground start",
"start-example": "yarn workspace example start",
"build": "yarn workspace @agney/playground build",
"test": "yarn workspace @agney/playground test"
},
"husky": {
"hooks": {
"pre-commit": "pretty-quick --staged"
}
"test": "yarn workspace @agney/playground test",
"prepare": "husky install"
},
"workspaces": [
"playground",
"example"
],
"devDependencies": {
"husky": "^4.2.5",
"prettier": "^2.0.5",
"pretty-quick": "^2.0.1",
"typescript": "^3.9.5"
"husky": "^5.1.3",
"prettier": "^2.2.1",
"pretty-quick": "^3.1.0",
"typescript": "^4.2.3"
},
"repository": {
"type": "git",
Expand Down
2 changes: 1 addition & 1 deletion yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -5779,7 +5779,7 @@ human-signals@^2.1.0:
resolved "https://registry.yarnpkg.com/human-signals/-/human-signals-2.1.0.tgz#dc91fcba42e4d06e4abaed33b3e7a3c02f514ea0"
integrity sha512-B4FFZ6q/T2jhhksgkbEW3HBvWIfDW85snkQgawt07S7J5QXTk6BkNV+0yAeZrM5QpMAdYlocGoljn0sJ/WQkFw==

husky@5:
husky@^5.1.3:
version "5.1.3"
resolved "https://registry.yarnpkg.com/husky/-/husky-5.1.3.tgz#1a0645a4fe3ffc006c4d0d8bd0bcb4c98787cc9d"
integrity sha512-fbNJ+Gz5wx2LIBtMweJNY1D7Uc8p1XERi5KNRMccwfQA+rXlxWNSdUxswo0gT8XqxywTIw7Ywm/F4v/O35RdMg==
Expand Down

0 comments on commit 7ee1e13

Please sign in to comment.