From ef3d72bc43e04ec09777c07bbcaf44f66db6d974 Mon Sep 17 00:00:00 2001 From: Burt <1020103647@qq.com> Date: Thu, 21 Dec 2023 15:31:57 +0800 Subject: [PATCH] =?UTF-8?q?build(tsconfig.json):=20=E5=A4=84=E7=90=86tscon?= =?UTF-8?q?fig.json?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tsconfig.json | 4 ++-- tsconfig.node.json | 10 ++++++++++ 2 files changed, 12 insertions(+), 2 deletions(-) create mode 100644 tsconfig.node.json diff --git a/tsconfig.json b/tsconfig.json index 11fffd2..c6de161 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,5 +1,4 @@ { - "extends": "@vue/tsconfig/tsconfig.json", "compilerOptions": { "sourceMap": true, "baseUrl": ".", @@ -9,5 +8,6 @@ "lib": ["esnext", "dom"], "types": ["@dcloudio/types"] }, - "include": ["src/**/*.ts", "src/**/*.d.ts", "src/**/*.tsx", "src/**/*.vue"] + "include": ["src/**/*.ts", "src/**/*.d.ts", "src/**/*.tsx", "src/**/*.vue"], + "references": [{ "path": "./tsconfig.node.json" }] } diff --git a/tsconfig.node.json b/tsconfig.node.json new file mode 100644 index 0000000..42872c5 --- /dev/null +++ b/tsconfig.node.json @@ -0,0 +1,10 @@ +{ + "compilerOptions": { + "composite": true, + "skipLibCheck": true, + "module": "ESNext", + "moduleResolution": "bundler", + "allowSyntheticDefaultImports": true + }, + "include": ["vite.config.ts"] +}