build: lint-staged docs in packages/mermaid/src/…

When running lint-staged during git pre-commit scripts,
search for docs in the packages/mermaid/src/docs folder instead
of the original src/docs folder.
This commit is contained in:
Alois Klink 2022-09-29 20:11:26 +01:00
parent 1cdb0ff72c
commit 1f3a02559c

View File

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