Skip to content

Commit 4085c3c

Browse files
committed
chore: move to simple-git-hooks
1 parent b5c9182 commit 4085c3c

File tree

3 files changed

+14
-49
lines changed

3 files changed

+14
-49
lines changed

.husky/pre-commit

Lines changed: 0 additions & 4 deletions
This file was deleted.

package.json

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
"lint:all:prettier": "pnpm lint:prettier \"{src,test}/**/*.{js,json,ts}\"",
4343
"lint:eslint": "eslint --fix",
4444
"lint:prettier": "prettier --write --log-level warn",
45-
"prepare": "husky install && pnpm build",
45+
"prepare": "npx simple-git-hooks && pnpm build",
4646
"prepublishOnly": "pnpm lint && pnpm test",
4747
"release": "bumpp && npm publish",
4848
"test": "vitest run",
@@ -65,20 +65,22 @@
6565
"@vitest/coverage-v8": "1.3.1",
6666
"acorn": "8.11.3",
6767
"bumpp": "9.4.0",
68-
"conventional-changelog-conventionalcommits": "latest",
6968
"eslint": "8.57.0",
7069
"eslint-config-prettier": "latest",
7170
"eslint-plugin-prettier": "latest",
7271
"expect-type": "0.18.0",
73-
"husky": "latest",
7472
"lint-staged": "latest",
7573
"prettier": "latest",
7674
"rollup": "4.12.1",
75+
"simple-git-hooks": "^2.10.0",
7776
"typescript": "5.4.2",
7877
"unbuild": "2.0.0",
7978
"vite": "5.1.5",
8079
"vitest": "1.3.1"
8180
},
81+
"simple-git-hooks": {
82+
"pre-commit": "npx lint-staged"
83+
},
8284
"resolutions": {
8385
"magic-regexp": "link:."
8486
},

pnpm-lock.yaml

Lines changed: 9 additions & 42 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)