Yuki Takei 4 лет назад
Родитель
Сommit
846bcfbb5c
2 измененных файлов с 18 добавлено и 4 удалено
  1. 12 0
      packages/app/tsconfig.json
  2. 6 4
      tsconfig.base.json

+ 12 - 0
packages/app/tsconfig.json

@@ -0,0 +1,12 @@
+{
+  "extends": "../../tsconfig.base.json",
+  "compilerOptions": {
+    "baseUrl": ".",
+    "paths": {
+      "~/*": ["./src/*"],
+      "^/*": ["./*"],
+      "@growi/*": ["./packages/*/src"],
+      "@alias/logger": ["./src/server/utils/logger"]
+    }
+  }
+}

+ 6 - 4
tsconfig.base.json

@@ -1,13 +1,15 @@
 {
 {
   "compilerOptions": {
   "compilerOptions": {
-    "target": "es2019",
+    "target": "esnext",
     "module": "commonjs",
     "module": "commonjs",
-    "lib": ["dom", "dom.iterable", "esnext"],
+    "allowJs": true,
+    "skipLibCheck": true,
+    "importHelpers": true,
     "sourceMap": true,
     "sourceMap": true,
-    "noEmit": true,
     "removeComments": false,
     "removeComments": false,
-    "importHelpers": true,
+    "noEmit": true,
     "isolatedModules": true,
     "isolatedModules": true,
+    "lib": ["dom", "dom.iterable", "esnext"],
 
 
     /* Strict Type-Checking Options */
     /* Strict Type-Checking Options */
     // "strict": true,
     // "strict": true,