Precommit Test

This commit is contained in:
Sidharth Vinod
2022-10-31 20:27:43 +05:30
parent 1e410de4cd
commit 3b7463e5ed
5 changed files with 11 additions and 9 deletions

View File

@@ -1,4 +1,4 @@
{ {
"*.{ts,js,json,html,md,mts}": ["eslint --fix", "prettier --write"], "!(docs/**/*)*.{ts,js,json,html,md,mts}": ["eslint --fix", "prettier --write"],
"*.jison": ["pnpm run lint:jison"] "*.jison": ["pnpm run lint:jison"]
} }

View File

@@ -845,4 +845,4 @@ g.classGroup line {
## Configuration ## Configuration
`Coming soon` `Coming soon!`

View File

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

View File

@@ -284,7 +284,7 @@ const getFilesFromGlobs = async (globs: string[]): Promise<string[]> => {
} }
if (git) { if (git) {
console.log(`Adding changes in ${FINAL_DOCS_DIR} folder to git`); console.log(`Adding changes in ${FINAL_DOCS_DIR} folder to git`);
exec('git add docs'); exec(`git add ${FINAL_DOCS_DIR}`);
} }
} }
})(); })();

View File

@@ -628,4 +628,4 @@ g.classGroup line {
## Configuration ## Configuration
`Coming soon...` `Coming soon!`