Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Correct ESM exports #54

Merged
merged 1 commit into from
Aug 21, 2023
Merged

Correct ESM exports #54

merged 1 commit into from
Aug 21, 2023

Conversation

cprussin
Copy link
Contributor

This corrects some incorrect parts of the package.json ESM config:

  1. The package should be listed as "type": "module" since it is written as ESM

  2. The exports declaration needs to include the declaration path too.

Without these two fixes this lib is not usable with 'moduleResolution': 'nodenext' in typescript, and presumably would have issues with later Node versions too, which have the same resolution strategy.

@hvianna hvianna changed the base branch from master to develop August 21, 2023 19:54
@hvianna
Copy link
Owner

hvianna commented Aug 21, 2023

Thank you for this! 👍

@hvianna hvianna merged commit 29a9f23 into hvianna:develop Aug 21, 2023
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.

None yet

2 participants