Skip to content

Commit 704f6be

Browse files
committed
chore: add commit linter and helper
1 parent dec5d45 commit 704f6be

2 files changed

Lines changed: 681 additions & 8 deletions

File tree

package.json

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,21 +16,27 @@
1616
"scripts": {
1717
"preinstall": "npx only-allow pnpm",
1818
"postinstall": "simple-git-hooks",
19+
"commit": "czg",
1920
"format": "biome check --write --verbose",
2021
"lint": "eslint --fix & tsc --noEmit --incremental",
2122
"test": "vitest",
2223
"build": "tsup src/index.ts --format cjs,esm --dts --clean --sourcemap && attw -P .",
24+
"version": "changeset version",
2325
"release": "changeset publish"
2426
},
2527
"devDependencies": {
2628
"@arethetypeswrong/cli": "^0.15.4",
2729
"@biomejs/biome": "^1.8.3",
30+
"@changesets/changelog-github": "0.5.0",
2831
"@changesets/cli": "^2.27.7",
32+
"@commitlint/cli": "19.4.1",
33+
"@commitlint/config-conventional": "19.4.1",
2934
"@eslint/js": "^9.6.0",
3035
"@types/eslint": "^8.56.10",
3136
"@types/node": "^20.14.10",
3237
"@vitest/coverage-v8": "^2.0.2",
33-
"eslint": "^9.6.0",
38+
"cz-git": "1.9.4",
39+
"czg": "1.9.4",
3440
"simple-git-hooks": "^2.11.1",
3541
"tsup": "^8.2.4",
3642
"typescript-eslint": "^7.16.0",
@@ -46,5 +52,10 @@
4652
"simple-git-hooks": {
4753
"pre-commit": "pnpm run format",
4854
"pre-push": "pnpm run lint"
55+
},
56+
"config": {
57+
"commitizen": {
58+
"path": "node_modules/cz-git"
59+
}
4960
}
5061
}

0 commit comments

Comments
 (0)