From 904aa62f867c436cda99da40c957ccc9b2cf46b1 Mon Sep 17 00:00:00 2001 From: Timeless0911 <50201324+Timeless0911@users.noreply.github.com> Date: Tue, 6 Aug 2024 21:18:35 +0800 Subject: [PATCH] Update packages/plugin-dts/src/dts.ts Co-authored-by: Wei --- packages/plugin-dts/src/dts.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/plugin-dts/src/dts.ts b/packages/plugin-dts/src/dts.ts index c1cba1a61..98f0bb0f7 100644 --- a/packages/plugin-dts/src/dts.ts +++ b/packages/plugin-dts/src/dts.ts @@ -38,7 +38,7 @@ export async function generateDts(data: DtsGenOptions): Promise { declarationDir!, relativePath, basename(entrySourcePath), - ).replace(/\.(js|mjs|jsx|ts|mts|tsx|cjs|cts)$/, '.d.ts'); + ).replace(/\.(js|mjs|jsx|ts|mts|tsx|cjs|cts|cjsx|ctsx|mjsx|mtsx)$/, '.d.ts'); } const bundleDtsIfNeeded = async () => {