From e133c006ceb42432fade167e2974fe4c2dc8eb67 Mon Sep 17 00:00:00 2001 From: imbytecat Date: Sun, 18 Jan 2026 13:59:58 +0800 Subject: [PATCH] =?UTF-8?q?refactor:=20=E6=B8=85=E7=90=86=E6=9E=84?= =?UTF-8?q?=E5=BB=BA=E6=B5=81=E7=A8=8B=E5=B9=B6=E5=BC=95=E5=85=A5Bun?= =?UTF-8?q?=E5=B7=A5=E5=85=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 清理旧的输出目录并引入Bun命令行工具以支持构建流程 - 移除构建脚本中多余的删除输出目录命令 --- build.ts | 4 ++++ package.json | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/build.ts b/build.ts index 0b266dd..a830357 100644 --- a/build.ts +++ b/build.ts @@ -1,3 +1,7 @@ +import { $ } from 'bun' + +await $`rm -rf out` + const targetMap = { 'bun-windows-x64': 'x86_64-pc-windows-msvc', 'bun-darwin-arm64': 'aarch64-apple-darwin', diff --git a/package.json b/package.json index b22445a..7232ef7 100644 --- a/package.json +++ b/package.json @@ -4,7 +4,7 @@ "type": "module", "scripts": { "build": "vite build && bun run build:compile", - "build:compile": "rm -rf out && bun build.ts", + "build:compile": "bun build.ts", "db:generate": "drizzle-kit generate", "db:migrate": "drizzle-kit migrate", "db:push": "drizzle-kit push",