Skip to content

Commit c476ca9

Browse files
committed
chore: speed up pre-commit hooks
1 parent 9b2b2b0 commit c476ca9

1 file changed

Lines changed: 6 additions & 7 deletions

File tree

package.json

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@
2424
"knip:fix": "knip --fix",
2525
"lint": "oxlint && oxfmt --check",
2626
"lint:fix": "oxlint --fix && oxfmt",
27-
"lint:css": "node scripts/unocss-checker.ts",
2827
"generate": "nuxt generate",
2928
"npmx-connector": "pnpm --filter npmx-connector dev",
3029
"mock-connector": "pnpm --filter npmx-connector dev:mock",
@@ -147,25 +146,25 @@
147146
"node": "24"
148147
},
149148
"simple-git-hooks": {
150-
"pre-commit": "npx lint-staged"
149+
"pre-commit": "./node_modules/.bin/lint-staged"
151150
},
152151
"lint-staged": {
153152
"i18n/locales/*": [
154153
"node ./lunaria/lunaria.ts",
155-
"pnpm oxfmt lunaria/files/",
154+
"./node_modules/.bin/oxfmt lunaria/files/",
156155
"git add lunaria/files/",
157156
"node scripts/generate-i18n-schema.ts",
158-
"pnpm oxfmt i18n/schema.json",
157+
"./node_modules/.bin/oxfmt i18n/schema.json",
159158
"git add i18n/schema.json"
160159
],
161160
"*.{js,ts,mjs,cjs,vue}": [
162-
"pnpm oxlint --fix"
161+
"./node_modules/.bin/oxlint --fix"
163162
],
164163
"*.vue": [
165-
"pnpm lint:css"
164+
"node scripts/unocss-checker.ts"
166165
],
167166
"*.{js,ts,mjs,cjs,vue,json,yml,md,html,css}": [
168-
"pnpm oxfmt"
167+
"./node_modules/.bin/oxfmt"
169168
]
170169
},
171170
"packageManager": "pnpm@10.30.1"

0 commit comments

Comments
 (0)