Skip to content

Commit 976070d

Browse files
authored
chore: speed up pre-commit hooks (#1661)
1 parent 9b2b2b0 commit 976070d

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

package.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -147,25 +147,25 @@
147147
"node": "24"
148148
},
149149
"simple-git-hooks": {
150-
"pre-commit": "npx lint-staged"
150+
"pre-commit": "./node_modules/.bin/lint-staged"
151151
},
152152
"lint-staged": {
153153
"i18n/locales/*": [
154154
"node ./lunaria/lunaria.ts",
155-
"pnpm oxfmt lunaria/files/",
155+
"./node_modules/.bin/oxfmt lunaria/files/",
156156
"git add lunaria/files/",
157157
"node scripts/generate-i18n-schema.ts",
158-
"pnpm oxfmt i18n/schema.json",
158+
"./node_modules/.bin/oxfmt i18n/schema.json",
159159
"git add i18n/schema.json"
160160
],
161161
"*.{js,ts,mjs,cjs,vue}": [
162-
"pnpm oxlint --fix"
162+
"./node_modules/.bin/oxlint --fix"
163163
],
164164
"*.vue": [
165-
"pnpm lint:css"
165+
"node scripts/unocss-checker.ts"
166166
],
167167
"*.{js,ts,mjs,cjs,vue,json,yml,md,html,css}": [
168-
"pnpm oxfmt"
168+
"./node_modules/.bin/oxfmt"
169169
]
170170
},
171171
"packageManager": "pnpm@10.30.1"

0 commit comments

Comments
 (0)