Skip to content

Commit

Permalink
Update packages/plugin-dts/src/dts.ts
Browse files Browse the repository at this point in the history
Co-authored-by: Wei <[email protected]>
  • Loading branch information
Timeless0911 and fi3ework authored Aug 6, 2024
1 parent e57c8ef commit 904aa62
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/plugin-dts/src/dts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ export async function generateDts(data: DtsGenOptions): Promise<void> {
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 () => {
Expand Down

0 comments on commit 904aa62

Please sign in to comment.