Skip to content

Commit d93a8f5

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

1 file changed

Lines changed: 8 additions & 7 deletions

File tree

package.json

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,8 @@
4747
"test:nuxt": "vite test --project nuxt",
4848
"test:types": "pnpm generate:lexicons && nuxt prepare && vue-tsc -b --noEmit && pnpm --filter npmx-connector test:types",
4949
"test:unit": "vite test --project unit",
50-
"start:playwright:webserver": "NODE_ENV=test pnpm preview --port 5678"
50+
"start:playwright:webserver": "NODE_ENV=test pnpm preview --port 5678",
51+
"hooks": "simple-git-hooks"
5152
},
5253
"dependencies": {
5354
"@atproto/common": "0.5.13",
@@ -148,25 +149,25 @@
148149
"node": "24"
149150
},
150151
"simple-git-hooks": {
151-
"pre-commit": "pnpm lint-staged"
152+
"pre-commit": "pnpm exec lint-staged"
152153
},
153154
"lint-staged": {
154155
"i18n/locales/*": [
155156
"node ./lunaria/lunaria.ts",
156-
"pnpm oxfmt lunaria/files/",
157+
"pnpm exec oxfmt lunaria/files/",
157158
"git add lunaria/files/",
158159
"node scripts/generate-i18n-schema.ts",
159-
"pnpm oxfmt i18n/schema.json",
160+
"pnpm exec oxfmt i18n/schema.json",
160161
"git add i18n/schema.json"
161162
],
162163
"*.{js,ts,mjs,cjs,vue}": [
163-
"pnpm oxlint --fix"
164+
"pnpm exec oxlint --fix"
164165
],
165166
"*.vue": [
166-
"pnpm lint:css"
167+
"node scripts/unocss-checker.ts"
167168
],
168169
"*.{js,ts,mjs,cjs,vue,json,yml,md,html,css}": [
169-
"pnpm oxfmt"
170+
"pnpm exec oxfmt"
170171
]
171172
},
172173
"packageManager": "pnpm@10.30.1"

0 commit comments

Comments
 (0)