- fix(types): 统一导入到 src/types.ts,移除 shared/types 残留路径

- chore(tsconfig): 将 include 扩展为 src/**/* 覆盖迁移后的源文件
- feat(build): Vite 设置 root 为 src,并将 build.outDir 设为 ../dist 以匹配 Tauri frontendDist
- refactor(api): 去除未使用的 plugin-shell import;统一 electronAPI 类型定义至 vite-env.d.ts
- build: 验证 renderer 构建通过,产物输出至 dist/
This commit is contained in:
Jason
2025-08-23 23:11:39 +08:00
parent 12fa80e002
commit 55c62a3753
11 changed files with 22 additions and 2314 deletions

View File

@@ -2,10 +2,11 @@ import { defineConfig } from 'vite'
import react from '@vitejs/plugin-react'
export default defineConfig({
root: 'src',
plugins: [react()],
base: './',
build: {
outDir: 'dist',
outDir: '../dist',
emptyOutDir: true
},
server: {
@@ -14,4 +15,4 @@ export default defineConfig({
},
clearScreen: false,
envPrefix: ['VITE_', 'TAURI_']
})
})