Browse Source

修改项目跟路径

liweifan 2 năm trước cách đây
mục cha
commit
20e1f000ad
1 tập tin đã thay đổi với 22 bổ sung9 xóa
  1. 22 9
      tsconfig.json

+ 22 - 9
tsconfig.json

@@ -1,6 +1,6 @@
 {
   "compilerOptions": {
-    "baseUrl": "./",
+    "baseUrl": "/website",
     "target": "esnext",
     "module": "esnext",
     "moduleResolution": "node",
@@ -20,12 +20,24 @@
       "node"
     ],
     "paths": {
-      "@/*": ["src/*"],
-      "@common/*": ["src/common/*"],
-      "@components/*": ["src/components/*"],
-      "@business-components/*": ["src/business-components/*"],
-      "@store/*": ["src/store/*"],
-      "@views/*": ["src/views/*"],
+      "@/*": [
+        "src/*"
+      ],
+      "@common/*": [
+        "src/common/*"
+      ],
+      "@components/*": [
+        "src/components/*"
+      ],
+      "@business-components/*": [
+        "src/business-components/*"
+      ],
+      "@store/*": [
+        "src/store/*"
+      ],
+      "@views/*": [
+        "src/views/*"
+      ],
     }
   },
   "include": [
@@ -34,9 +46,10 @@
     "src/**/*.tsx",
     "src/**/*.vue",
     "tests/**/*.ts",
-    "tests/**/*.tsx",  ],
+    "tests/**/*.tsx",
+  ],
   "exclude": [
     "node_modules",
     "dist"
   ]
-}
+}