Skip to content

Commit f2d7c0e

Browse files
committed
chore: config release-it
1 parent 649b4c2 commit f2d7c0e

3 files changed

Lines changed: 25 additions & 1 deletion

File tree

.release-it.json

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
{
2+
"git": {
3+
"commitMessage": "chore: release v${version}"
4+
},
5+
"github": {
6+
"release": true
7+
},
8+
"hooks": {
9+
"before:init": ["bun test"],
10+
"after:bump": ["bun run build", "bun run lint"]
11+
},
12+
"plugins": {
13+
"@release-it/conventional-changelog": {
14+
"preset": {
15+
"name": "conventionalcommits"
16+
},
17+
"infile": "CHANGELOG.md",
18+
"header": "# Changelog"
19+
}
20+
}
21+
}

bun.lockb

103 KB
Binary file not shown.

package.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,8 @@
2828
"prepare": "husky",
2929
"test": "bun test",
3030
"build": "rm -rf dist && tsc && tsc-alias",
31-
"lint": "publint"
31+
"lint": "publint",
32+
"release": "release-it"
3233
},
3334
"lint-staged": {
3435
"README.md": "doctoc --github",
@@ -41,6 +42,7 @@
4142
"devDependencies": {
4243
"@commitlint/cli": "^19.3.0",
4344
"@commitlint/config-conventional": "^19.2.2",
45+
"@release-it/conventional-changelog": "^8.0.1",
4446
"@types/bun": "latest",
4547
"@types/d3-dsv": "^3.0.7",
4648
"bun-plugin-dts": "^0.2.3",
@@ -50,6 +52,7 @@
5052
"prettier": "^3.2.5",
5153
"prettier-plugin-organize-imports": "^3.2.4",
5254
"publint": "^0.2.7",
55+
"release-it": "^17.2.1",
5356
"tsc-alias": "^1.8.8",
5457
"typescript": "^5.4.5"
5558
}

0 commit comments

Comments
 (0)