Skip to content

Commit 90752e1

Browse files
committed
chore(): fix husky script
1 parent 704a348 commit 90752e1

File tree

4 files changed

+12
-10
lines changed

4 files changed

+12
-10
lines changed

.husky/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
_

.husky/commit-msg

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/bin/sh
2+
. "$(dirname "$0")/_/husky.sh"
3+
4+
npx --no commitlint --edit $1

.husky/pre-commit

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/usr/bin/env sh
2+
. "$(dirname -- "$0")/_/husky.sh"
3+
4+
npx --no lint-staged

package.json

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@
1717
"prerelease": "npm run build",
1818
"release": "release-it",
1919
"test:e2e": "jest --config ./tests/jest-e2e.json --runInBand",
20-
"test:e2e:dev": "jest --config ./tests/jest-e2e.json --runInBand --watch"
20+
"test:e2e:dev": "jest --config ./tests/jest-e2e.json --runInBand --watch",
21+
"prepare": "husky install"
2122
},
2223
"devDependencies": {
2324
"@commitlint/cli": "17.1.2",
@@ -55,14 +56,6 @@
5556
"rxjs": "^7.0.0"
5657
},
5758
"lint-staged": {
58-
"*.ts": [
59-
"prettier --write"
60-
]
61-
},
62-
"husky": {
63-
"hooks": {
64-
"pre-commit": "lint-staged",
65-
"commit-msg": "commitlint -c .commitlintrc.json -E HUSKY_GIT_PARAMS"
66-
}
59+
"**/*.{ts,json}": []
6760
}
6861
}

0 commit comments

Comments
 (0)