Skip to content

Commit

Permalink
chore(): fix husky scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
Tony133 committed Oct 2, 2022
1 parent 27b3f96 commit a1a424a
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 10 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/commit-msg
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

npx --no-install commitlint --edit $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
13 changes: 3 additions & 10 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@
"prepublish:npm": "npm run build",
"publish:npm": "npm publish --access public",
"prerelease": "npm run build",
"release": "release-it"
"release": "release-it",
"prepare": "husky install"
},
"dependencies": {
"uuid": "8.3.2"
Expand Down Expand Up @@ -48,15 +49,7 @@
"rxjs": "^7.2.0"
},
"lint-staged": {
"*.ts": [
"prettier --write"
]
},
"husky": {
"hooks": {
"commit-msg": "commitlint -c .commitlintrc.json -E HUSKY_GIT_PARAMS",
"pre-commit": "lint-staged"
}
"**/*.{ts,json}": []
},
"repository": {
"type": "git",
Expand Down

0 comments on commit a1a424a

Please sign in to comment.