File tree Expand file tree Collapse file tree 3 files changed +12
-8
lines changed Expand file tree Collapse file tree 3 files changed +12
-8
lines changed Original file line number Diff line number Diff line change
1
+ #! /bin/sh
2
+ . " $( dirname " $0 " ) /_/husky.sh"
3
+
4
+ npx --no-install commitlint --edit $1
Original file line number Diff line number Diff line change
1
+ #! /bin/sh
2
+ . " $( dirname " $0 " ) /_/husky.sh"
3
+
4
+ npm run pre-commit
Original file line number Diff line number Diff line change 14
14
"contrib:add" : " all-contributors add" ,
15
15
"contrib:generate" : " all-contributors generate" ,
16
16
"lint-staged" : " lint-staged" ,
17
- "docs" : " lerna run docs"
17
+ "docs" : " lerna run docs" ,
18
+ "prepare" : " husky install" ,
19
+ "pre-commit" : " run-s lint-staged test"
18
20
},
19
21
"devDependencies" : {
20
22
"@commitlint/cli" : " ^8.1.0" ,
24
26
"commitizen" : " ^3.1.1" ,
25
27
"conventional-changelog-cli" : " ^2.1.0" ,
26
28
"cz-conventional-changelog" : " ^2.1.0" ,
27
- "husky" : " ^3 .0.0" ,
29
+ "husky" : " ^7 .0.0" ,
28
30
"jest" : " ^26.2.2" ,
29
31
"jest-express" : " ^1.10.1" ,
30
32
"lerna" : " ^3.22.1" ,
35
37
"ts-jest" : " ^26.0.0" ,
36
38
"typescript" : " ^3.9.7"
37
39
},
38
- "husky" : {
39
- "hooks" : {
40
- "pre-commit" : " run-s lint-staged test" ,
41
- "commit-msg" : " commitlint -E HUSKY_GIT_PARAMS"
42
- }
43
- },
44
40
"lint-staged" : {
45
41
"*.{js,jsx,ts,tsx}" : [
46
42
" prettier --write" ,
You can’t perform that action at this time.
0 commit comments