Просмотр исходного кода

override compilerOptions when using ts-node

Yuki Takei 1 год назад
Родитель
Сommit
70beb16e0e
1 измененных файлов с 5 добавлено и 1 удалено
  1. 5 1
      apps/app/tsconfig.json

+ 5 - 1
apps/app/tsconfig.json

@@ -37,6 +37,10 @@
   ],
   "ts-node": {
     "transpileOnly": true,
-    "swc": true
+    "swc": true,
+    "compilerOptions": {
+      "module": "CommonJS",
+      "moduleResolution": "Node"
+    }
   }
 }