Skip to content

Commit 41b94f8

Browse files
committed
chore: use pnpm exec in precommit instead of npx and pnpm
1 parent 9d9714d commit 41b94f8

2 files changed

Lines changed: 7 additions & 6 deletions

File tree

app/components/Package/Versions.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -407,6 +407,7 @@ async function expandOtherVersions() {
407407
}
408408
}
409409
410+
console.log('test')
410411
otherVersionsExpanded.value = true
411412
}
412413

package.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -148,25 +148,25 @@
148148
"node": "24"
149149
},
150150
"simple-git-hooks": {
151-
"pre-commit": "pnpm lint-staged"
151+
"pre-commit": "pnpm exec lint-staged"
152152
},
153153
"lint-staged": {
154154
"i18n/locales/*": [
155155
"node ./lunaria/lunaria.ts",
156-
"pnpm oxfmt lunaria/files/",
156+
"pnpm exec oxfmt lunaria/files/",
157157
"git add lunaria/files/",
158158
"node scripts/generate-i18n-schema.ts",
159-
"pnpm oxfmt i18n/schema.json",
159+
"pnpm exec oxfmt i18n/schema.json",
160160
"git add i18n/schema.json"
161161
],
162162
"*.{js,ts,mjs,cjs,vue}": [
163-
"pnpm oxlint --fix"
163+
"pnpm exec oxlint --fix"
164164
],
165165
"*.vue": [
166-
"pnpm lint:css"
166+
"node scripts/unocss-checker.ts"
167167
],
168168
"*.{js,ts,mjs,cjs,vue,json,yml,md,html,css}": [
169-
"pnpm oxfmt"
169+
"pnpm exec oxfmt"
170170
]
171171
},
172172
"packageManager": "pnpm@10.30.1"

0 commit comments

Comments
 (0)