]> git.ipfire.org Git - thirdparty/vuejs/create-vue.git/commitdiff
refactor: merge type definitions into 1 file and move them out of `src`
authorHaoqun Jiang <haoqunjiang@gmail.com>
Wed, 28 Jul 2021 13:19:13 +0000 (21:19 +0800)
committerHaoqun Jiang <haoqunjiang@gmail.com>
Wed, 28 Jul 2021 13:19:13 +0000 (21:19 +0800)
template/config/base/jsconfig.json
template/config/base/src/vite-env.d.ts [deleted file]
template/config/base/vite-env.d.ts [moved from template/config/base/src/shims-vue.d.ts with 81% similarity]

index 9c2cfe6b94aa9c2da03a83f9915bde7346ae62c2..6f98acfaf2682aea3da7514c0d0197cb4e2a574c 100644 (file)
@@ -16,6 +16,6 @@
     "lib": ["esnext", "dom", "dom.iterable", "scripthost"],
     "skipLibCheck": true
   },
-  "include": ["vite.config.*", "src/**/*", "src/**/*.vue"],
+  "include": ["vite.config.*", "vite-env.d.ts", "src/**/*", "src/**/*.vue"],
   "exclude": ["src/**/__tests__/**"]
 }
diff --git a/template/config/base/src/vite-env.d.ts b/template/config/base/src/vite-env.d.ts
deleted file mode 100644 (file)
index 11f02fe..0000000
+++ /dev/null
@@ -1 +0,0 @@
-/// <reference types="vite/client" />
similarity index 81%
rename from template/config/base/src/shims-vue.d.ts
rename to template/config/base/vite-env.d.ts
index ec4f1b2ef135434d489842a7e33c291ba56934fc..636d9c3f6c6ac43150a1997e54cb29d877513912 100644 (file)
@@ -1,3 +1,5 @@
+/// <reference types="vite/client" />
+
 declare module '*.vue' {
   import { DefineComponent } from 'vue'
   // eslint-disable-next-line