From 1f3a02559c2dff01248dca79c47a9b6cff86913c Mon Sep 17 00:00:00 2001 From: Alois Klink Date: Thu, 29 Sep 2022 20:11:26 +0100 Subject: [PATCH] =?UTF-8?q?build:=20lint-staged=20docs=20in=20packages/mer?= =?UTF-8?q?maid/src/=E2=80=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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. --- .lintstagedrc.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.lintstagedrc.json b/.lintstagedrc.json index a6c963ff6..be6e92770 100644 --- a/.lintstagedrc.json +++ b/.lintstagedrc.json @@ -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"] }