]> git.ipfire.org Git - thirdparty/vuejs/create-vue.git/commitdiff
fix: vitest tsconfig should include all files under `src` (#56)
authorHaoqun Jiang <haoqunjiang@gmail.com>
Wed, 16 Feb 2022 06:34:28 +0000 (14:34 +0800)
committerGitHub <noreply@github.com>
Wed, 16 Feb 2022 06:34:28 +0000 (14:34 +0800)
template/tsconfig/vitest/package.json
template/tsconfig/vitest/tsconfig.app.json [new file with mode: 0644]
template/tsconfig/vitest/tsconfig.json
template/tsconfig/vitest/tsconfig.vitest.json

index 453890304e8702388e389ec5641108f0043965b0..29b8d1789393f5cf49c63ec9890e3c6dc18f18de 100644 (file)
@@ -1,6 +1,6 @@
 {
   "scripts": {
-    "typecheck": "vue-tsc --noEmit && vue-tsc --noEmit -p tsconfig.vitest.json --composite false"
+    "typecheck": "vue-tsc --noEmit -p tsconfig.vitest.json --composite false"
   },
   "devDependencies": {
     "@types/jsdom": "^16.2.14"
diff --git a/template/tsconfig/vitest/tsconfig.app.json b/template/tsconfig/vitest/tsconfig.app.json
new file mode 100644 (file)
index 0000000..cdbea1d
--- /dev/null
@@ -0,0 +1,12 @@
+{
+  "extends": "@vue/tsconfig/tsconfig.web.json",
+  "include": ["env.d.ts", "src/**/*", "src/**/*.vue"],
+  "exclude": ["src/**/__tests__/*"],
+  "compilerOptions": {
+    "composite": true,
+    "baseUrl": ".",
+    "paths": {
+      "@/*": ["./src/*"]
+    }
+  }
+}
index 2551bf2ffcde57904f7c8e30147591036fd1e3d3..24f21b069fa1e928d1a6617d90d320e600d352c4 100644 (file)
@@ -1,18 +1,12 @@
 {
-  "extends": "@vue/tsconfig/tsconfig.web.json",
-  "include": ["env.d.ts", "src/**/*", "src/**/*.vue"],
-  "exclude": ["src/**/__tests__/*"],
-  "compilerOptions": {
-    "baseUrl": ".",
-    "paths": {
-      "@/*": ["./src/*"]
-    }
-  },
-
+  "files": [],
   "references": [
     {
       "path": "./tsconfig.vite-config.json"
     },
+    {
+      "path": "./tsconfig.app.json"
+    },
     {
       "path": "./tsconfig.vitest.json"
     }
index 566756808ede2c8f88d7b665ca2d559bd44ed78e..d080d611e38db50e232a39df044d1770a0f45940 100644 (file)
@@ -1,12 +1,9 @@
 {
-  "extends": "@vue/tsconfig/tsconfig.node.json",
-  "include": ["src/**/__tests__/*"],
+  "extends": "./tsconfig.app.json",
+  "exclude": [],
   "compilerOptions": {
     "composite": true,
-    "baseUrl": ".",
-    "paths": {
-      "@/*": ["./src/*"]
-    },
+    "lib": [],
     "types": ["node", "jsdom"]
   }
 }