Skip to content

Commit 16790da

Browse files
authored
Merge pull request #4 from jason89521/commitizen
chore: use commitizen to format the commit message
2 parents 90f184b + d9984bd commit 16790da

2 files changed

Lines changed: 542 additions & 17 deletions

File tree

package.json

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
}
3131
},
3232
"scripts": {
33+
"commit": "cz",
3334
"dev": "vite",
3435
"test": "jest ./src/__test__/Typist.test.tsx",
3536
"build:example": "tsc && vite build",
@@ -58,6 +59,8 @@
5859
"@typescript-eslint/parser": "^5.25.0",
5960
"@vitejs/plugin-react": "^1.3.2",
6061
"babel-loader": "^8.2.5",
62+
"commitizen": "^4.2.4",
63+
"cz-conventional-changelog": "3.3.0",
6164
"eslint": "^8.15.0",
6265
"eslint-plugin-react": "^7.30.0",
6366
"eslint-plugin-react-hooks": "^4.5.0",
@@ -75,5 +78,10 @@
7578
"peerDependencies": {
7679
"react": ">=18.0.0"
7780
},
78-
"dependencies": {}
81+
"dependencies": {},
82+
"config": {
83+
"commitizen": {
84+
"path": "./node_modules/cz-conventional-changelog"
85+
}
86+
}
7987
}

0 commit comments

Comments
 (0)