Skip to content

Fix exports map to match actual tsdown output - #8

Merged
0x80 merged 1 commit into
mainfrom
thijs/fix-exports-v2.3.0
Apr 8, 2026
Merged

0x80 merged 1 commit into
mainfrom
thijs/fix-exports-v2.3.0

Conversation

@0x80

@0x80 0x80 commented Apr 8, 2026

Copy link
Copy Markdown
Owner

Fixes #6

The tsdown upgrade to v0.21.7 changed the default ESM output extension from .js to .mjs, but the exports field was not updated to match. This caused ERR_MODULE_NOT_FOUND when importing the package as ESM.

Updates the exports map to point to the actual filenames (index.mjs, index.cjs, index.d.mts, index.d.cts) and adds proper conditional types entries for both import and require conditions.

Scope: package
Visibility: user-facing

The tsdown upgrade to v0.21.7 changed the default ESM output extension
from .js to .mjs, but the exports field in package.json was not updated
to match. This caused ERR_MODULE_NOT_FOUND when importing the package.

Fixes #6
@0x80
0x80 merged commit a497aef into main Apr 8, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

v2.3.0: ESM exports map points to non-existent dist/index.js (should be dist/index.mjs)

1 participant