From 9e10fb7eaca1df1e77e9fc14db2ca9e9cbee0c33 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=83=9D=E5=85=88=E7=91=9E?= <1490493387@qq.com> Date: Sat, 15 Apr 2023 23:50:29 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20:hammer:=20=E4=BF=AE=E6=94=B9`tsconfg`?= =?UTF-8?q?=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tsconfig.json | 8 ++++---- tsconfig.node.json | 9 +++++++++ 2 files changed, 13 insertions(+), 4 deletions(-) create mode 100644 tsconfig.node.json 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"] +}