Skip to content

Commit

Permalink
chore(tooling): Update Husky to v6 configs
Browse files Browse the repository at this point in the history
  • Loading branch information
alerque committed Mar 29, 2021
1 parent 6a00388 commit 4d0de3b
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 7 deletions.
1 change: 1 addition & 0 deletions .husky/.gitignore
@@ -0,0 +1 @@
_
4 changes: 4 additions & 0 deletions .husky/commit-msg
@@ -0,0 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

yarn commitlint --edit $1
2 changes: 2 additions & 0 deletions .husky/pre-commit
@@ -0,0 +1,2 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"
10 changes: 3 additions & 7 deletions package.json
Expand Up @@ -5,7 +5,8 @@
"main": "sile",
"scripts": {
"test": "make test",
"release": "standard-version"
"release": "standard-version",
"prepare": "husky install"
},
"repository": {
"type": "git",
Expand All @@ -24,19 +25,14 @@
"commitizen": "^4.2.3",
"conventional-changelog-cli": "^2.1.1",
"github-release-cli": "^2.0.0",
"husky": "^5.1.3",
"husky": "^6.0.0",
"standard-version": "^9.1.1"
},
"config": {
"commitizen": {
"path": "@commitlint/prompt"
}
},
"husky": {
"hooks": {
"commit-msg": "commitlint -E HUSKY_GIT_PARAMS"
}
},
"standard-version": {
"infile": "CHANGELOG.md",
"types": [
Expand Down

0 comments on commit 4d0de3b

Please sign in to comment.