From: Haoqun Jiang Date: Wed, 28 Jul 2021 13:19:13 +0000 (+0800) Subject: refactor: merge type definitions into 1 file and move them out of `src` X-Git-Tag: v3.0.0-alpha.2~15 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ef3b61d1f559ed8872daef39089bab2363fa6209;p=thirdparty%2Fvuejs%2Fcreate-vue.git refactor: merge type definitions into 1 file and move them out of `src` --- diff --git a/template/config/base/jsconfig.json b/template/config/base/jsconfig.json index 9c2cfe6b..6f98acfa 100644 --- a/template/config/base/jsconfig.json +++ b/template/config/base/jsconfig.json @@ -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 index 11f02fe2..00000000 --- a/template/config/base/src/vite-env.d.ts +++ /dev/null @@ -1 +0,0 @@ -/// diff --git a/template/config/base/src/shims-vue.d.ts b/template/config/base/vite-env.d.ts similarity index 81% rename from template/config/base/src/shims-vue.d.ts rename to template/config/base/vite-env.d.ts index ec4f1b2e..636d9c3f 100644 --- a/template/config/base/src/shims-vue.d.ts +++ b/template/config/base/vite-env.d.ts @@ -1,3 +1,5 @@ +/// + declare module '*.vue' { import { DefineComponent } from 'vue' // eslint-disable-next-line