mirror of
https://github.com/lobehub/lobe-chat.git
synced 2026-06-14 03:30:19 +00:00
1a4005c7b9
* ♻️ refactor(server-deps): extract envs/trpc/config/locales/business-server into packages * ♻️ refactor: relocate src/server backend modules to apps/server package Rebuilt on current canary: git mv the 8 server subtrees (services, routers, modules, globalConfig, utils, runtimeConfig, workflows, featureFlags) into @lobechat/server, with @/server/* dual-path alias, database vitest aliases, and instrumentation import fixup. * 📝 docs(skills): update src/server path refs to apps/server/src after relocation
77 lines
2.0 KiB
JSON
77 lines
2.0 KiB
JSON
{
|
|
"$schema": "https://json.schemastore.org/tsconfig",
|
|
"compilerOptions": {
|
|
"target": "ESNext",
|
|
"lib": ["dom", "dom.iterable", "dom.asynciterable", "esnext", "webworker"],
|
|
"allowJs": true,
|
|
"skipLibCheck": true,
|
|
"strict": true,
|
|
"forceConsistentCasingInFileNames": true,
|
|
"noEmit": true,
|
|
"esModuleInterop": true,
|
|
"module": "esnext",
|
|
"moduleResolution": "bundler",
|
|
"resolveJsonModule": true,
|
|
"isolatedModules": true,
|
|
"jsx": "react-jsx",
|
|
"incremental": true,
|
|
"types": ["vitest/globals"],
|
|
"paths": {
|
|
"@/database/*": ["./packages/database/src/*"],
|
|
"@/const/*": ["./packages/const/src/*", "./src/const/*"],
|
|
"@/utils/*": ["./packages/utils/src/*", "./src/utils/*"],
|
|
"@/types/*": ["./packages/types/src/*", "./src/types/*"],
|
|
"@/envs/*": ["./packages/env/src/*", "./src/envs/*"],
|
|
"@/libs/trpc/*": ["./packages/trpc/src/*", "./src/libs/trpc/*"],
|
|
"@/config/*": ["./packages/app-config/src/*", "./src/config/*"],
|
|
"@/locales/*": ["./packages/locales/src/*", "./src/locales/*"],
|
|
"@/business/server/*": ["./packages/business-server/src/*", "./src/business/server/*"],
|
|
"@/server/*": ["./apps/server/src/*", "./src/server/*"],
|
|
"@/*": ["./src/*"],
|
|
"~test-utils": ["./tests/utils.tsx"]
|
|
},
|
|
"plugins": [
|
|
{
|
|
"name": "next"
|
|
}
|
|
]
|
|
},
|
|
"exclude": [
|
|
"node_modules",
|
|
"apps/desktop/**",
|
|
"apps/mobile/**",
|
|
"tmp",
|
|
"temp",
|
|
".temp",
|
|
"e2e/**",
|
|
"knip.ts"
|
|
],
|
|
"include": [
|
|
"src/**/*.d.ts",
|
|
"src/**/*.ts",
|
|
"src/**/*.tsx",
|
|
"packages/**/*.d.ts",
|
|
"packages/**/*.ts",
|
|
"packages/**/*.tsx",
|
|
"tests/**/*.d.ts",
|
|
"tests/**/*.ts",
|
|
"tests/**/*.tsx",
|
|
"scripts/**/*.ts",
|
|
"scripts/**/*.mts",
|
|
"scripts/**/*.cts",
|
|
"apps/server/**/*.ts",
|
|
"apps/server/**/*.tsx",
|
|
"*.ts",
|
|
"*.mts",
|
|
"*.cts",
|
|
".next/types/**/*.ts",
|
|
"next-env.d.ts",
|
|
".next/dev/types/**/*.ts"
|
|
],
|
|
"references": [
|
|
{
|
|
"path": "./apps/desktop"
|
|
}
|
|
]
|
|
}
|