Skip to content

Commit

Permalink
Merge pull request #1060 from Tony133/chore/fix-husky-script
Browse files Browse the repository at this point in the history
chore(): fix husky script
  • Loading branch information
kamilmysliwiec committed Oct 5, 2022
2 parents f0cdaef + 9f87e50 commit 3005c5c
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 10 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"

npx --no commitlint --edit $1
4 changes: 4 additions & 0 deletions .husky/pre-commit
@@ -0,0 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

npx --no lint-staged
13 changes: 3 additions & 10 deletions package.json
Expand Up @@ -16,7 +16,8 @@
"test:e2e": "jest --config ./tests/jest-e2e.json --runInBand",
"test:e2e:dev": "jest --config ./tests/jest-e2e.json --runInBand --watch",
"prerelease": "npm run build",
"release": "release-it"
"release": "release-it",
"prepare": "husky install"
},
"devDependencies": {
"@commitlint/cli": "17.1.2",
Expand Down Expand Up @@ -61,15 +62,7 @@
"sequelize-typescript": "^2.0.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 3005c5c

Please sign in to comment.