mirror of
https://github.com/CherryHQ/cherry-studio.git
synced 2026-01-10 23:59:45 +08:00
- Introduced a new path alias '@test-mocks' in TypeScript configuration files to simplify the import of mock utilities across the project. - Updated relevant files to utilize the new alias, enhancing code readability and maintainability. - Enhanced the README for test mocks to document the new import path, providing clearer guidance for developers on using mock utilities.
39 lines
1.1 KiB
JSON
39 lines
1.1 KiB
JSON
{
|
|
"extends": "@electron-toolkit/tsconfig/tsconfig.node.json",
|
|
"include": [
|
|
"electron.vite.config.*",
|
|
"scripts",
|
|
"src/main/**/*",
|
|
"src/main/env.d.ts",
|
|
"src/preload/**/*",
|
|
"src/renderer/src/services/traceApi.ts",
|
|
"src/renderer/src/types/*",
|
|
"packages/mcp-trace/**/*",
|
|
"packages/shared/**/*",
|
|
"tests/__mocks__/**/*"
|
|
],
|
|
"compilerOptions": {
|
|
"composite": true,
|
|
"incremental": true,
|
|
"moduleResolution": "bundler",
|
|
"tsBuildInfoFile": ".tsbuildinfo/tsconfig.node.tsbuildinfo",
|
|
"types": [
|
|
"electron-vite/node",
|
|
"vitest/globals"
|
|
],
|
|
"paths": {
|
|
"@logger": ["./src/main/services/LoggerService"],
|
|
"@data/*": ["./src/main/data/*"],
|
|
"@main/*": ["./src/main/*"],
|
|
"@types": ["./src/renderer/src/types/index.ts"],
|
|
"@shared/*": ["./packages/shared/*"],
|
|
"@mcp-trace/*": ["./packages/mcp-trace/*"],
|
|
"@modelcontextprotocol/sdk/*": ["./node_modules/@modelcontextprotocol/sdk/dist/esm/*"],
|
|
"@test-mocks/*": ["./tests/__mocks__/*"]
|
|
},
|
|
"experimentalDecorators": true,
|
|
"emitDecoratorMetadata": true,
|
|
"useDefineForClassFields": true
|
|
}
|
|
}
|