Ver Fonte

add typecheck cmd and fix tsconfig file

Olivier Massot há 4 meses atrás
pai
commit
0b7527b2dc
2 ficheiros alterados com 5 adições e 9 exclusões
  1. 2 1
      package.json
  2. 3 8
      tsconfig.json

+ 2 - 1
package.json

@@ -21,7 +21,8 @@
     "lint": "eslint .",
     "lint-fix": "eslint --fix .",
     "prettier-check": "yarn prettier . --check",
-    "prettier-fix": "yarn prettier . --write"
+    "prettier-fix": "yarn prettier . --write",
+    "typecheck": "nuxi typecheck"
   },
   "dependencies": {
     "@casl/ability": "^6.7.3",

+ 3 - 8
tsconfig.json

@@ -6,13 +6,8 @@
     "esModuleInterop": true,
     "sourceMap": true,
     "experimentalDecorators": true,
-    "types": [
-      "@nuxtjs/date-fns",
-      "@nuxt/types",
-      "@nuxtjs/i18n",
-      "vitest/globals"
-    ],
-    "exclude": ["node_modules", ".nuxt"],
+    "types": [],
     "typeRoots": ["./types"]
-  }
+  },
+  "exclude": ["node_modules", ".nuxt"]
 }