From 2e98a84fc1ac5b688b0d1788a6448b16769d863c Mon Sep 17 00:00:00 2001 From: oasis-cloud Date: Thu, 19 Sep 2024 15:52:36 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E7=B1=BB=E5=9E=8B=E6=9E=84=E5=BB=BA?= =?UTF-8?q?=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- vite.config.build.taro.ts | 2 +- vite.config.build.ts | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/vite.config.build.taro.ts b/vite.config.build.taro.ts index 0fe97ab213..5137f77617 100644 --- a/vite.config.build.taro.ts +++ b/vite.config.build.taro.ts @@ -47,7 +47,7 @@ export default defineConfig({ fse.remove('./dist/types/packages/nutui.taro.react.build.d.ts') fse.outputFile( './dist/types/index.d.ts', - `${data.replace(/\.\.\//g, './')}` + `${data.replace(/\.\//g, './packages/')}` ) }) }, diff --git a/vite.config.build.ts b/vite.config.build.ts index b4e83ebf7b..3962bc8ef2 100644 --- a/vite.config.build.ts +++ b/vite.config.build.ts @@ -43,10 +43,10 @@ export default defineConfig({ fse .readFile('./dist/types/packages/nutui.react.build.d.ts', 'utf-8') .then((data: string) => { - fse.remove('./dist/types/packages/nutui.react.build.d.ts') + // fse.remove('./dist/types/packages/nutui.react.build.d.ts') fse.outputFile( './dist/types/index.d.ts', - `${data.replace(/\.\.\//g, './')}` + `${data.replace(/\.\//g, './packages/')}` ) }) },