mirror of
https://github.com/hellodigua/ChatLab.git
synced 2026-10-25 17:54:34 +08:00
Move Electron-specific code (main, preload, shared) and configs (electron.vite, electron-builder) into apps/desktop/ to prepare for multi-platform support (Web Browser standalone). - Create apps/desktop/ with dedicated package.json and tsconfig - Split Electron deps (electron, electron-updater, better-sqlite3, etc.) from shared frontend deps in root package.json - Declare better-sqlite3 and @node-rs/jieba in packages/node-runtime - Add stream-json to packages/parser where it belongs - Update all path aliases (@electron/* → apps/desktop/*) in tsconfig, vite configs, and relative imports in preload/main - Keep slim root tsconfig.node.json as shared base for packages - Update CI/CD release workflow for new directory layout - Fix pre-existing type errors (pi-ai Model generic, SQLLabTab LLMChatStreamChunk, filter.test.ts empty methods)
29 lines
784 B
JSON
29 lines
784 B
JSON
{
|
|
"extends": "@electron-toolkit/tsconfig/tsconfig.web.json",
|
|
"include": ["src/env.d.ts", "src/**/*", "apps/desktop/preload/**/*.d.ts", "packages/**/*"],
|
|
"compilerOptions": {
|
|
"baseUrl": ".",
|
|
"target": "ESNext",
|
|
"useDefineForClassFields": true,
|
|
"module": "ESNext",
|
|
"moduleResolution": "Bundler",
|
|
"strict": true,
|
|
"jsx": "preserve",
|
|
"resolveJsonModule": true,
|
|
"isolatedModules": true,
|
|
"esModuleInterop": true,
|
|
"lib": ["ESNext", "DOM"],
|
|
"skipLibCheck": true,
|
|
"noEmit": true,
|
|
"noUnusedLocals": true,
|
|
"strictNullChecks": true,
|
|
"allowJs": true,
|
|
"forceConsistentCasingInFileNames": true,
|
|
"paths": {
|
|
"@/*": ["src/*"],
|
|
"@electron/*": ["apps/desktop/*"],
|
|
"@openchatlab/*": ["packages/*"]
|
|
}
|
|
}
|
|
}
|