Skip to content

Commit

Permalink
chore(): fix husky script
Browse files Browse the repository at this point in the history
  • Loading branch information
Tony133 committed Oct 3, 2022
1 parent 704a348 commit 90752e1
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 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 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

npx --no lint-staged
13 changes: 3 additions & 10 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@
"prerelease": "npm run build",
"release": "release-it",
"test:e2e": "jest --config ./tests/jest-e2e.json --runInBand",
"test:e2e:dev": "jest --config ./tests/jest-e2e.json --runInBand --watch"
"test:e2e:dev": "jest --config ./tests/jest-e2e.json --runInBand --watch",
"prepare": "husky install"
},
"devDependencies": {
"@commitlint/cli": "17.1.2",
Expand Down Expand Up @@ -55,14 +56,6 @@
"rxjs": "^7.0.0"
},
"lint-staged": {
"*.ts": [
"prettier --write"
]
},
"husky": {
"hooks": {
"pre-commit": "lint-staged",
"commit-msg": "commitlint -c .commitlintrc.json -E HUSKY_GIT_PARAMS"
}
"**/*.{ts,json}": []
}
}

0 comments on commit 90752e1

Please sign in to comment.