mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-09-22 00:40:22 +02:00
Merge pull request #3536 from aloisklink/build/fix-pre-commit-rules
Fix husky `pre-commit` rules
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
. "$(dirname "$0")/_/husky.sh"
|
. "$(dirname "$0")/_/husky.sh"
|
||||||
|
|
||||||
yarn pre-commit
|
pnpm run pre-commit
|
||||||
|
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"src/docs/**": ["yarn docs:build --git"],
|
"packages/mermaid/src/docs/**": ["pnpm run docs:build --git"],
|
||||||
"src/docs.mts": ["yarn docs:build --git"],
|
"packages/mermaid/src/docs.mts": ["pnpm run docs:build --git"],
|
||||||
"*.{ts,js,json,html,md,mts}": ["eslint --fix", "prettier --write"],
|
"*.{ts,js,json,html,md,mts}": ["eslint --fix", "prettier --write"],
|
||||||
"*.jison": ["yarn lint:jison"]
|
"*.jison": ["pnpm run lint:jison"]
|
||||||
}
|
}
|
||||||
|
@@ -46,7 +46,7 @@
|
|||||||
"test": "pnpm lint && vitest run",
|
"test": "pnpm lint && vitest run",
|
||||||
"test:watch": "vitest --coverage --watch",
|
"test:watch": "vitest --coverage --watch",
|
||||||
"prepublishOnly": "pnpm build && pnpm test",
|
"prepublishOnly": "pnpm build && pnpm test",
|
||||||
"todo-prepare": "concurrently \"husky install\" \"pnpm build\"",
|
"prepare": "concurrently \"husky install\" \"pnpm build\"",
|
||||||
"pre-commit": "lint-staged"
|
"pre-commit": "lint-staged"
|
||||||
},
|
},
|
||||||
"repository": {
|
"repository": {
|
||||||
|
Reference in New Issue
Block a user