Skip to content

Commit 32d7875

Browse files
committed
feat: add version script
1 parent 09e565f commit 32d7875

4 files changed

Lines changed: 1769 additions & 4 deletions

File tree

commitlint.config.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
module.exports = {
2+
extends: ["@commitlint/config-conventional"],
3+
};

package.json

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@
66
"types": "dist/index.d.ts",
77
"scripts": {
88
"watch": "tsc --watch",
9-
"build": "tsc"
9+
"build": "tsc",
10+
"version": "conventional-changelog -p angular -i CHANGELOG.md -s && git add CHANGELOG.md"
1011
},
1112
"repository": {
1213
"type": "git",
@@ -28,6 +29,16 @@
2829
},
2930
"homepage": "https://github.com/jipitiai/askcodebase-common#readme",
3031
"devDependencies": {
32+
"@commitlint/cli": "^17.6.7",
33+
"@commitlint/config-conventional": "^17.6.7",
34+
"conventional-changelog": "^4.0.0",
35+
"conventional-changelog-cli": "^3.0.0",
36+
"husky": "^8.0.3",
3137
"typescript": "^5.1.6"
38+
},
39+
"husky": {
40+
"hooks": {
41+
"commit-msg": "npx commitlint -E HUSKY_GIT_PARAMS"
42+
}
3243
}
33-
}
44+
}

0 commit comments

Comments
 (0)