31 lines
823 B
JSON
31 lines
823 B
JSON
{
|
|
"compilerOptions": {
|
|
"tsBuildInfoFile": "./node_modules/.tmp/tsconfig.node.tsbuildinfo",
|
|
"target": "ES2022",
|
|
"lib": ["ES2023", "DOM"],
|
|
"module": "CommonJS",
|
|
"moduleResolution": "Node",
|
|
"esModuleInterop": true,
|
|
"strict": true,
|
|
"skipLibCheck": true,
|
|
"outDir": "./dist-electron",
|
|
"rootDir": "./electron",
|
|
"noEmit": false, // 必须设置为 false 才能生成 JS 文件
|
|
"typeRoots": [
|
|
"./node_modules/@types",
|
|
"./src/types" // 添加类型声明路径
|
|
],
|
|
"composite": true // 启用组合模式
|
|
},
|
|
"include": [
|
|
"electron/**/*.ts",
|
|
"src/types/**/*.d.ts" // 明确包含类型声明文件
|
|
],
|
|
"exclude": [
|
|
"node_modules",
|
|
"dist",
|
|
"src/**/*.tsx", // 排除渲染进程代码
|
|
//"src/**/*.ts" // 排除渲染进程代码
|
|
]
|
|
}
|