Skip to content

Commit 3dce089

Browse files
committed
chore: added husky
1 parent 87954e5 commit 3dce089

6 files changed

+23
-6
lines changed

.husky/commit-msg

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
#!/bin/sh
2+
. "$(dirname "$0")/_/husky.sh"
3+
4+
bunx commitlint --edit $1
5+

.husky/prepare-commit-msg

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/bin/sh
2+
. "$(dirname "$0")/_/husky.sh"
3+
4+
exec < /dev/tty && bunx cz --hook || true

bun.lockb

72.2 KB
Binary file not shown.

commitlint.config.js

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
// biome-ignore lint/style/noDefaultExport: Redundant
2+
export default { extends: ['@commitlint/config-conventional'] }

package.json

+11-1
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,21 @@
77
"@biomejs/biome": "1.7.3",
88
"@types/bun": "^1.1.1",
99
"git-cz": "^4.9.0",
10+
"husky": "^9.0.11",
1011
"typescript": "^5.4.5"
1112
},
13+
"scripts": {
14+
"prepare": "husky"
15+
},
16+
"dependencies": {
17+
"@commitlint/cli": "^19.3.0",
18+
"@commitlint/config-conventional": "^19.2.2",
19+
"commitizen": "^4.3.0",
20+
"cz-conventional-changelog": "^3.3.0"
21+
},
1222
"config": {
1323
"commitizen": {
14-
"path": "./node_modules/git-cz"
24+
"path": "./node_modules/cz-conventional-changelog"
1525
}
1626
}
1727
}

tsconfig.json

+1-5
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,4 @@
11
{
22
"extends": "./tsconfig.base.json",
3-
"references": [
4-
{
5-
"path": "apps/builder"
6-
}
7-
]
3+
"references": []
84
}

0 commit comments

Comments
 (0)