build: update pre-commit rules to use `pnpm`

Update husky and lint-staged to use pnpm instead of yarn.
pull/3536/head
Alois Klink 2022-09-29 19:48:02 +01:00
parent 320e105ffe
commit 9513e0e2d5
2 changed files with 4 additions and 4 deletions

View File

@ -1,4 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"
yarn pre-commit
pnpm run pre-commit

View File

@ -1,6 +1,6 @@
{
"src/docs/**": ["yarn docs:build --git"],
"src/docs.mts": ["yarn docs:build --git"],
"src/docs/**": ["pnpm run docs:build --git"],
"src/docs.mts": ["pnpm run docs:build --git"],
"*.{ts,js,json,html,md,mts}": ["eslint --fix", "prettier --write"],
"*.jison": ["yarn lint:jison"]
"*.jison": ["pnpm run lint:jison"]
}