refactor: remove auto-imports.d.ts from tsconfig and vite config

- Updated tsconfig.json to remove reference to auto-imports.d.ts in the "include" section.
- Removed dts option from vite.config.mts to eliminate generation of auto-imports.d.ts.
- Deleted auto-imports.d.ts file to clean up unused code and reduce clutter.
This commit is contained in:
zhanggy committed 2025-11-02 10:30:27 +08:00
1 parent 5d7d31c04d
commit db0139ac02
4 files changed
+1 -18

No files matched your search

File renamed without changes.
@@ -452,22 +452,6 @@ const editItem = (item: TreeNode) => {
} }
} }
// 在树状结构中查找节点的辅助函数
const findNodeInTree = (nodes: TreeNode[], nodeId: string): TreeNode | null => {
for (const node of nodes) {
if (node.id === nodeId) {
return node
}
if (node.children) {
const found = findNodeInTree(node.children, nodeId)
if (found) {
return found
}
}
}
return null
}
// Show dialog to edit directory // Show dialog to edit directory
const showEditDirectoryDialog = (directory: TreeNode) => { const showEditDirectoryDialog = (directory: TreeNode) => {
+1 -1
View File
@@ -19,7 +19,7 @@
}, },
"lib": ["esnext", "dom"] "lib": ["esnext", "dom"]
}, },
"include": ["src/*.ts", "src/*.d.ts", "src/renderer", "src/renderer/auto-imports.d.ts", "src/types"], "include": ["src/*.ts", "src/*.d.ts", "src/renderer", "src/types"],
"references": [ "references": [
{ {
"path": "./tsconfig.node.json" "path": "./tsconfig.node.json"
-1
View File
@@ -116,7 +116,6 @@ export default defineConfig(({ mode }) => {
'./src/renderer/store', './src/renderer/store',
'./src/renderer/components' './src/renderer/components'
], ],
dts: 'src/renderer/auto-imports.d.ts',
vueTemplate: true vueTemplate: true
}), }),
// Docs: https://github.com/vuetifyjs/vuetify-loader // Docs: https://github.com/vuetifyjs/vuetify-loader