Skip to content

Commit 1d748c3

Browse files
author
sw-yx
committedApr 22, 2019
fix(filename): just adding husky
1 parent 4746911 commit 1d748c3

File tree

2 files changed

+943
-34
lines changed

2 files changed

+943
-34
lines changed
 

‎package.json

+19-1
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,25 @@
1111
"scripts": {
1212
"start": "tsdx watch",
1313
"build": "tsdx build",
14-
"test": "tsdx test"
14+
"test": "tsdx test",
15+
"commit": "git-cz",
16+
"version": "auto-changelog -p --template keepachangelog && git add CHANGELOG.md",
17+
"prepublishOnly": "git push && git push --tags && gh-release"
18+
},
19+
"husky": {
20+
"hooks": {
21+
"prepare-commit-msg": "exec < /dev/tty && git cz --hook"
22+
}
1523
},
1624
"devDependencies": {
1725
"@types/jest": "^24.0.11",
1826
"@types/react": "^16.8.14",
1927
"@types/react-dom": "^16.8.4",
28+
"auto-changelog": "^1.13.0",
29+
"commitizen": "^3.1.1",
30+
"cz-conventional-changelog": "2.1.0",
31+
"gh-release": "^3.5.0",
32+
"husky": "^1.3.1",
2033
"tsdx": "^0.3.4",
2134
"typescript": "^3.4.4"
2235
},
@@ -28,5 +41,10 @@
2841
"@reach/dialog": "^0.2.3",
2942
"@reach/visually-hidden": "^0.1.3",
3043
"react-netlify-identity": "^0.0.7"
44+
},
45+
"config": {
46+
"commitizen": {
47+
"path": "./node_modules/cz-conventional-changelog"
48+
}
3149
}
3250
}

0 commit comments

Comments
 (0)
Please sign in to comment.