Skip to content

Commit b2e0835

Browse files
chore: change yorkie to simple-git-hooks (#2466)
1 parent 1ad847e commit b2e0835

File tree

4 files changed

+23
-151
lines changed

4 files changed

+23
-151
lines changed

.github/contributing.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,9 @@ Hi! I'm really excited that you are interested in contributing to Vue Router. Be
3434

3535
- Make sure tests pass!
3636

37-
- Commit messages must follow the [commit message convention](./commit-convention.md) so that the changelog can be automatically generated. Commit messages are automatically validated before commit (by invoking [Git Hooks](https://git-scm.com/docs/githooks) via [yorkie](https://github.com/yyx990803/yorkie)).
37+
- Commit messages must follow the [commit message convention](./commit-convention.md) so that the changelog can be automatically generated. Commit messages are automatically validated before commit (by invoking [Git Hooks](https://git-scm.com/docs/githooks) via [simple-git-hooks](https://github.com/toplenboren/simple-git-hooks)).
3838

39-
- No need to worry about code style as long as you have installed the dev dependencies - modified files are automatically formatted with Prettier on commit (by invoking [Git Hooks](https://git-scm.com/docs/githooks) via [yorkie](https://github.com/yyx990803/yorkie)).
39+
- No need to worry about code style as long as you have installed the dev dependencies - modified files are automatically formatted with Prettier on commit (by invoking [Git Hooks](https://git-scm.com/docs/githooks) via [simple-git-hooks](https://github.com/toplenboren/simple-git-hooks)).
4040

4141
## Development Setup
4242

package.json

+6-5
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,8 @@
2727
"lint:script": "prettier -c --parser typescript \"packages/*/{src,__tests__,e2e}/**/*.[jt]s?(x)\"",
2828
"lint:html": "prettier -c --parser html \"packages/**/*.html\"",
2929
"lint:fix": "pnpm run lint:script --write && pnpm run lint:html --write",
30-
"test": "pnpm run -r test"
30+
"test": "pnpm run -r test",
31+
"postinstall": "simple-git-hooks"
3132
},
3233
"devDependencies": {
3334
"@vitest/coverage-v8": "^2.1.5",
@@ -42,14 +43,14 @@
4243
"p-series": "^3.0.0",
4344
"prettier": "^2.8.8",
4445
"semver": "^7.6.3",
46+
"simple-git-hooks": "^2.11.1",
4547
"typedoc": "^0.26.11",
4648
"typedoc-plugin-markdown": "^4.2.10",
4749
"typescript": "~5.6.3",
48-
"vitest": "^2.1.5",
49-
"yorkie": "^2.0.0"
50+
"vitest": "^2.1.5"
5051
},
51-
"gitHooks": {
52-
"pre-commit": "lint-staged",
52+
"simple-git-hooks": {
53+
"pre-commit": "pnpm lint-staged",
5354
"commit-msg": "node scripts/verifyCommit.mjs"
5455
},
5556
"lint-staged": {

0 commit comments

Comments
 (0)