From b4ff6fcd38a5b89240c980f03679de9506f5b7ab Mon Sep 17 00:00:00 2001 From: hxr <1490493387@qq.com> Date: Sun, 26 Nov 2023 23:58:21 +0800 Subject: [PATCH] =?UTF-8?q?refactor:=20:recycle:=20=E8=B0=83=E6=95=B4?= =?UTF-8?q?=E7=B1=BB=E5=9E=8B=E5=A3=B0=E6=98=8E=E6=96=87=E4=BB=B6=E8=B7=AF?= =?UTF-8?q?=E5=BE=84=E8=87=B3=20`src/typings`=20=E5=92=8C=20`element-plus`?= =?UTF-8?q?=20=E4=BF=9D=E6=8C=81=E4=B8=80=E8=87=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- {types => src/typings}/auto-imports.d.ts | 0 {types => src/typings}/components.d.ts | 0 {types => src/typings}/env.d.ts | 0 {types => src/typings}/global.d.ts | 0 {types => src/typings}/router.d.ts | 0 {types => src/typings}/shims-vue.d.ts | 0 tsconfig.json | 2 +- vite.config.ts | 4 ++-- 8 files changed, 3 insertions(+), 3 deletions(-) rename {types => src/typings}/auto-imports.d.ts (100%) rename {types => src/typings}/components.d.ts (100%) rename {types => src/typings}/env.d.ts (100%) rename {types => src/typings}/global.d.ts (100%) rename {types => src/typings}/router.d.ts (100%) rename {types => src/typings}/shims-vue.d.ts (100%) diff --git a/types/auto-imports.d.ts b/src/typings/auto-imports.d.ts similarity index 100% rename from types/auto-imports.d.ts rename to src/typings/auto-imports.d.ts diff --git a/types/components.d.ts b/src/typings/components.d.ts similarity index 100% rename from types/components.d.ts rename to src/typings/components.d.ts diff --git a/types/env.d.ts b/src/typings/env.d.ts similarity index 100% rename from types/env.d.ts rename to src/typings/env.d.ts diff --git a/types/global.d.ts b/src/typings/global.d.ts similarity index 100% rename from types/global.d.ts rename to src/typings/global.d.ts diff --git a/types/router.d.ts b/src/typings/router.d.ts similarity index 100% rename from types/router.d.ts rename to src/typings/router.d.ts diff --git a/types/shims-vue.d.ts b/src/typings/shims-vue.d.ts similarity index 100% rename from types/shims-vue.d.ts rename to src/typings/shims-vue.d.ts diff --git a/tsconfig.json b/tsconfig.json index 6164b06..6d1e993 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -27,7 +27,7 @@ "include": [ "src/**/*.ts", "src/**/*.vue", - "types/**/*.d.ts", + "src/typings/**/*.d.ts", "mock/**/*.ts", "vite.config.ts" ], diff --git a/vite.config.ts b/vite.config.ts index 139e03b..75851be 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -81,7 +81,7 @@ export default defineConfig(({ mode }: ConfigEnv): UserConfig => { vueTemplate: true, // 配置文件生成位置(false:关闭自动生成) dts: false, - // dts: "types/auto-imports.d.ts", + // dts: "src/typings/auto-imports.d.ts", }), Components({ @@ -95,7 +95,7 @@ export default defineConfig(({ mode }: ConfigEnv): UserConfig => { dirs: ["src/components", "src/**/components"], // 配置文件位置 (false:关闭自动生成) dts: false, - // dts: "types/components.d.ts", + // dts: "src/typings/components.d.ts", }), Icons({