diff --git a/package.json b/package.json index 37016c2e39..5b3205b2f1 100644 --- a/package.json +++ b/package.json @@ -148,25 +148,25 @@ "node": "24" }, "simple-git-hooks": { - "pre-commit": "./node_modules/.bin/lint-staged" + "pre-commit": "pnpm exec lint-staged" }, "lint-staged": { "i18n/locales/*": [ "node ./lunaria/lunaria.ts", - "./node_modules/.bin/oxfmt lunaria/files/", + "pnpm exec oxfmt lunaria/files/", "git add lunaria/files/", "node scripts/generate-i18n-schema.ts", - "./node_modules/.bin/oxfmt i18n/schema.json", + "pnpm exec oxfmt i18n/schema.json", "git add i18n/schema.json" ], "*.{js,ts,mjs,cjs,vue}": [ - "./node_modules/.bin/oxlint --fix" + "pnpm exec oxlint --fix" ], "*.vue": [ "node scripts/unocss-checker.ts" ], "*.{js,ts,mjs,cjs,vue,json,yml,md,html,css}": [ - "./node_modules/.bin/oxfmt" + "pnpm exec oxfmt" ] }, "packageManager": "pnpm@10.30.1"