diff --git a/src/utils.ts b/src/utils.ts index 7ca612d49..ad0c46dcc 100644 --- a/src/utils.ts +++ b/src/utils.ts @@ -255,11 +255,10 @@ export function writeFileSync(filePath: string, content: string) { */ export function replaceDtsWithJsExtensions(dtsFilePath: string) { return dtsFilePath.replace( - /\.d\.(ts|mts|cts|tsx)$/, + /\.d\.(ts|mts|cts)$/, (_, fileExtension: string) => { switch (fileExtension) { case 'ts': - case 'tsx': return '.js' case 'mts': return '.mjs'