- 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

@@ -1,6 +1,5 @@
import { invoke } from '@tauri-apps/api/core';
import { open } from '@tauri-apps/plugin-shell';
import { Provider } from '../../shared/types';
import { Provider } from '../types';
// 定义配置状态类型
interface ConfigStatus {
@@ -160,4 +159,4 @@ if (typeof window !== 'undefined') {
};
}
export default tauriAPI;
export default tauriAPI;