- 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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user