Skip to content

Commit cb8e135

Browse files
committed
chore: drop githook tool
1 parent ef42940 commit cb8e135

File tree

3 files changed

+4302
-1587
lines changed

3 files changed

+4302
-1587
lines changed

.githooks/pre-commit

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
#!/bin/sh
2+
npx --no-install lint-staged

package.json

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,7 @@
7676
"shipjs": "^0.24.4",
7777
"typescript": "^5.2.2",
7878
"unbuild": "^1.2.1",
79-
"vitest": "^0.34.4",
80-
"yorkie": "^2.0.0"
79+
"vitest": "^0.34.4"
8180
},
8281
"engines": {
8382
"node": ">= 12"
@@ -101,9 +100,6 @@
101100
"bin": {
102101
"intlify": "./bin/run.cjs"
103102
},
104-
"gitHooks": {
105-
"pre-commit": "lint-staged"
106-
},
107103
"lint-staged": {
108104
"*.{js,json,yaml,yml}": [
109105
"prettier --write"
@@ -121,6 +117,7 @@
121117
},
122118
"packageManager": "pnpm@8.7.5",
123119
"scripts": {
120+
"prepare": "git config --local core.hooksPath .githooks",
124121
"build": "pnpm build:transpile && pnpm build:extract",
125122
"build:extract": "api-extractor run -l -c ./api-extractor.json",
126123
"build:transpile": "unbuild",

0 commit comments

Comments
 (0)