diff --git a/tsconfig.json b/tsconfig.json index aea293c..b2fbbcf 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -15,12 +15,12 @@ "paths": { "@/*": ["src/*"] }, - "types": ["vite/client", "element-plus/global","unplugin-icons/types/vue"], + "types": ["vite/client", "element-plus/global", "unplugin-icons/types/vue"], "skipLibCheck": true /* Skip type checking all .d.ts files. */, "allowSyntheticDefaultImports": true /* 允许默认导入 */, - "forceConsistentCasingInFileNames": true /* Ensure that casing is correct in imports. */, - + "forceConsistentCasingInFileNames": true /* Ensure that casing is correct in imports. */ }, "include": ["src/**/*.ts", "src/**/*.vue", "src/types/**/*.d.ts"], - "exclude": ["node_modules", "dist", "**/*.js"] + "exclude": ["node_modules", "dist", "**/*.js"], + "references": [{ "path": "./tsconfig.node.json" }] } diff --git a/tsconfig.node.json b/tsconfig.node.json new file mode 100644 index 0000000..9d31e2a --- /dev/null +++ b/tsconfig.node.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "composite": true, + "module": "ESNext", + "moduleResolution": "Node", + "allowSyntheticDefaultImports": true + }, + "include": ["vite.config.ts"] +}