Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 14 additions & 3 deletions dashboard/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,24 @@
{
"extends": "@vue/tsconfig/tsconfig.dom.json",
"include": ["env.d.ts", "src/**/*", "src/**/*.vue", "src/types/.d.ts"],
"include": ["env.d.ts", "src/**/*", "src/**/*.vue", "src/types/**/*.d.ts"],
"compilerOptions": {
"target": "ESNext",
"module": "ESNext",
"moduleResolution": "bundler",
"useDefineForClassFields": true,
"isolatedModules": true,
"strict": true,
"jsx": "preserve",
"resolveJsonModule": true,
"esModuleInterop": true,
"skipLibCheck": true,
"noEmit": true,
"allowJs": true,
"ignoreDeprecations": "5.0",
"baseUrl": ".",
"paths": {
"@/*": ["./src/*"]
},
"allowJs": true
}
},

"references": [
Expand Down
4 changes: 4 additions & 0 deletions dashboard/tsconfig.vite-config.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,12 @@
"extends": "@vue/tsconfig/tsconfig.json",
"include": ["vite.config.*"],
"compilerOptions": {
"outDir": "dist",
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

Using dist here may cause collisions with the main project's output. Since this configuration is specifically for Vite configuration files and uses composite: true, it is recommended to use a separate output directory (e.g., dist-tsc-vite) to prevent build metadata (like .tsbuildinfo) from interfering with the main project's output if both are processed by a tool like tsc --build.

Suggested change
"outDir": "dist",
"outDir": "dist-tsc-vite",

"composite": true,
"allowJs": true,
"skipLibCheck": true,
"esModuleInterop": true,
"moduleResolution": "node",
"types": ["node"]
}
}
Loading