Przeglądaj źródła

feat(create): Update default tsconfig

Michael Bromley 8 miesięcy temu
rodzic
commit
ee40c50f0c
1 zmienionych plików z 10 dodań i 2 usunięć
  1. 10 2
      packages/create/templates/tsconfig.template.json

+ 10 - 2
packages/create/templates/tsconfig.template.json

@@ -1,6 +1,7 @@
 {
   "compilerOptions": {
-    "module": "commonjs",
+    "module": "nodenext",
+    "moduleResolution": "nodenext",
     "allowSyntheticDefaultImports": true,
     "esModuleInterop": true,
     "emitDecoratorMetadata": true,
@@ -13,7 +14,14 @@
     "outDir": "./dist",
     "baseUrl": "./"
   },
-  "exclude": ["node_modules", "migration.ts", "src/plugins/**/ui/*", "admin-ui"],
+  "exclude": [
+    "node_modules",
+    "migration.ts",
+    "src/plugins/**/ui/*",
+    "src/plugins/**/dashboard/*",
+    "admin-ui",
+    "vite.*.*ts"
+  ],
   "ts-node": {
     "files": true
   }