Skip to content

Commit

Permalink
Fix a thing
Browse files Browse the repository at this point in the history
  • Loading branch information
emmatown committed Jan 15, 2024
1 parent 3cd7ae3 commit 3b207d3
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,9 @@ export default function typescriptDeclarations(pkg: Package): Plugin {
});

if (
pkg.exportsFieldConfig()?.importConditionDefaultExport === "default"
pkg.exportsFieldConfig()?.importConditionDefaultExport ===
"default" &&
!pkg.isTypeModule()
) {
const dmtsFilename = dtsFileName.replace(/\.d\.ts$/, ".d.mts");
const basedmtsFilename = baseDtsFilename.replace(
Expand Down

0 comments on commit 3b207d3

Please sign in to comment.