瀏覽代碼

chore(tsconfig.json): 处理类型报错

Burt 2 年之前
父節點
當前提交
4c5573ff61
共有 2 個文件被更改,包括 5 次插入12 次删除
  1. 5 2
      tsconfig.json
  2. 0 10
      tsconfig.node.json

+ 5 - 2
tsconfig.json

@@ -1,6 +1,10 @@
 {
   "compilerOptions": {
+    "composite": true,
+    "skipLibCheck": true,
     "module": "ESNext",
+    "moduleResolution": "bundler",
+    "allowSyntheticDefaultImports": true,
     "sourceMap": true,
     "baseUrl": ".",
     "paths": {
@@ -12,6 +16,5 @@
   "vueCompilerOptions": {
     "nativeTags": ["block", "template", "component", "slot"]
   },
-  "include": ["src/**/*.ts", "src/**/*.d.ts", "src/**/*.tsx", "src/**/*.vue"],
-  "references": [{ "path": "./tsconfig.node.json" }]
+  "include": ["src/**/*.ts", "src/**/*.d.ts", "src/**/*.tsx", "src/**/*.vue"]
 }

+ 0 - 10
tsconfig.node.json

@@ -1,10 +0,0 @@
-{
-  "compilerOptions": {
-    "composite": true,
-    "skipLibCheck": true,
-    "module": "ESNext",
-    "moduleResolution": "bundler",
-    "allowSyntheticDefaultImports": true
-  },
-  "include": ["vite.config.ts"]
-}