mirror of
https://github.com/hellodigua/ChatLab.git
synced 2026-10-25 17:54:34 +08:00
Move the CLI application from packages/server/ to apps/cli/ to align with the monorepo convention (apps/ for deployable applications, packages/ for shared libraries). Rename package to @openchatlab/chatlab. Also fix a bug in ensureToken() that used raw string manipulation to write config.toml, causing duplicate token fields that corrupted the TOML file. This led to config parse failures and user_data_dir being overwritten with defaults. Now uses writeConfigField() for safe writes.
30 lines
739 B
JSON
30 lines
739 B
JSON
{
|
|
"extends": "@electron-toolkit/tsconfig/tsconfig.node.json",
|
|
"include": [
|
|
"electron.vite.config.*",
|
|
"main/**/*",
|
|
"preload/**/*",
|
|
"shared/**/*",
|
|
"../../src/types/**/*",
|
|
"../../packages/shared-types/**/*",
|
|
"../../packages/core/**/*",
|
|
"../../packages/node-runtime/**/*",
|
|
"../../packages/config/**/*",
|
|
"../../packages/parser/**/*",
|
|
"../../apps/cli/**/*",
|
|
"../../packages/tools/**/*",
|
|
"../../packages/sync/**/*"
|
|
],
|
|
"compilerOptions": {
|
|
"composite": true,
|
|
"types": ["electron-vite/node"],
|
|
"moduleResolution": "bundler",
|
|
"baseUrl": ".",
|
|
"paths": {
|
|
"@/*": ["../../src/*"],
|
|
"@electron/*": ["./*"],
|
|
"@openchatlab/*": ["../../packages/*"]
|
|
}
|
|
}
|
|
}
|