chore: 在prepare脚本中添加git初始化步骤

在prepare脚本中增加git init命令,确保husky安装前git仓库已初始化
This commit is contained in:
feige996 2025-06-03 19:51:28 +08:00
parent ad522ee570
commit 6bc115cd36

View File

@ -70,7 +70,7 @@
"build:quickapp-webview-union": "uni build -p quickapp-webview-union", "build:quickapp-webview-union": "uni build -p quickapp-webview-union",
"type-check": "vue-tsc --noEmit", "type-check": "vue-tsc --noEmit",
"openapi-ts-request": "openapi-ts", "openapi-ts-request": "openapi-ts",
"prepare": "husky" "prepare": "git init && husky"
}, },
"lint-staged": { "lint-staged": {
"**/*.{html,cjs,json,md,scss,css,txt}": [ "**/*.{html,cjs,json,md,scss,css,txt}": [