1
0

chore: 清理项目冗余文件和构建中间产物

删除根目录 index.ts(与 start 脚本重复)、移除 package.json 中无效的 module 字段、构建成功后自动清理 .build/ 目录
This commit is contained in:
2026-05-09 15:21:42 +08:00
parent 8121be38cd
commit f723ecb1b5
4 changed files with 11 additions and 3 deletions

View File

@@ -52,6 +52,8 @@ if (!result.success) {
console.log(`Built executable: ${executablePath}`);
await rm(buildDir, { recursive: true, force: true });
async function listFiles(directory: string): Promise<string[]> {
const entries = await readdir(directory, { withFileTypes: true });
const files = await Promise.all(