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

Consider using "exports" instead of "main"/"module" in package.json #102

Closed
cmdcolin opened this issue Sep 24, 2023 · 3 comments
Closed

Comments

@cmdcolin
Copy link
Contributor

See #79

@cmdcolin
Copy link
Contributor Author

the exports can conceivably support both commonjs and ESM at the same time, allowing us to avoid going pure-ESM yet again, but the ESM part of the package would have to be actual ESM with file extensions in and import statements, etc.

@cmdcolin
Copy link
Contributor Author

cmdcolin commented Dec 2, 2023

example of a project converting to "exports" in package.json https://github.com/alexbol99/flatten-interval-tree/pull/49/files

@cmdcolin
Copy link
Contributor Author

cmdcolin commented Jan 7, 2025

tried adopting in v6.0.2, PR #108

@cmdcolin cmdcolin closed this as completed Jan 7, 2025
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

No branches or pull requests

1 participant