mirror of https://github.com/mermaid-js/mermaid
build: update pre-commit rules to use `pnpm`
Update husky and lint-staged to use pnpm instead of yarn.pull/3536/head
parent
320e105ffe
commit
9513e0e2d5
|
@ -1,4 +1,4 @@
|
|||
#!/bin/sh
|
||||
. "$(dirname "$0")/_/husky.sh"
|
||||
|
||||
yarn pre-commit
|
||||
pnpm run pre-commit
|
||||
|
|
|
@ -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"]
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue