From 7055f8f382b879fc34d12efd592926a77f2377de Mon Sep 17 00:00:00 2001 From: zhaojinfeng <121016171@qq.com> Date: Fri, 21 Jul 2023 16:21:28 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20ts=E8=B7=AF=E5=BE=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bin/dts.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bin/dts.ts b/bin/dts.ts index 8231285..ff148e3 100644 --- a/bin/dts.ts +++ b/bin/dts.ts @@ -2,8 +2,8 @@ * @Author: zhaojinfeng 121016171@qq.com * @Date: 2023-06-19 16:41:12 * @LastEditors: zhaojinfeng 121016171@qq.com - * @LastEditTime: 2023-06-21 10:23:39 - * @FilePath: \tianheng-design\bin\dts.ts + * @LastEditTime: 2023-07-21 16:21:00 + * @FilePath: \vue3\bin\dts.ts * @Description: * */ @@ -35,7 +35,7 @@ async function writeDTS(sourceFiles: SourceFile[]) { continue } - const newPath = filePath.replace(packageRoot, esRoot) + const newPath = filePath.replace(packageRoot, esRoot).replace('index.vue.d.ts', 'index.mjs.d.ts') await mkdir(dirname(newPath), { recursive: true }) await writeFile(newPath, outputFile.getText(), 'utf8')