From 4c5ed50fb65fefcfcc493fded22dd14d23c657cb Mon Sep 17 00:00:00 2001 From: feige996 <1020102647@qq.com> Date: Mon, 13 Oct 2025 17:04:51 +0800 Subject: [PATCH] =?UTF-8?q?refactor(scripts):=20=E6=8B=86=E5=88=86=20prepa?= =?UTF-8?q?re=20=E8=84=9A=E6=9C=AC=E4=B8=BA=E7=8B=AC=E7=AB=8B=E5=91=BD?= =?UTF-8?q?=E4=BB=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 将 prepare 和 docker:prepare 脚本拆分为独立的 init-husky 和 init-baseFile 命令 --- package.json | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index a46820f..66007f1 100644 --- a/package.json +++ b/package.json @@ -88,8 +88,10 @@ "build:quickapp-webview-union": "uni build -p quickapp-webview-union", "type-check": "vue-tsc --noEmit", "openapi": "openapi-ts", - "prepare": "git init && husky && node ./scripts/create-base-files.js", - "docker:prepare": "node ./scripts/create-base-files.js", + "init-husky": "git init && husky", + "init-baseFile": "node ./scripts/create-base-files.js", + "prepare": "pnpm init-husky & pnpm init-baseFile", + "docker:prepare": "pnpm init-baseFile", "lint": "eslint", "lint:fix": "eslint --fix" },