refactor(projects): add simple-git-hooks replace husky

This commit is contained in:
Soybean
2023-01-03 23:25:00 +08:00
parent c097b5681d
commit 9110d87580
6 changed files with 250 additions and 504 deletions

6
scripts/git-hooks.ts Normal file
View File

@ -0,0 +1,6 @@
import { $ } from 'zx';
$`rm -rf .husky`;
$`git config core.hooksPath .git/hooks/`;
$`rm -rf .git/hooks`;
$`pnpm simple-git-hooks`;