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

fix: exports configuration #116

Merged
merged 1 commit into from
Jul 3, 2024
Merged

fix: exports configuration #116

merged 1 commit into from
Jul 3, 2024

Conversation

huozhi
Copy link
Member

@huozhi huozhi commented Jul 2, 2024

What

  • Drop "require": "./dist/font.js", this condition is wrong, geist doesn't have CJS bundle
  • Set module type to "module"

Why

It's already using ESM and .js extension, it should be treated as a ESM package.

Fix the dual exports (both CJS and ESM) since the CJS exports are not valid. rename default to types since those type files are for typing

@huozhi huozhi requested a review from JohnPhamous July 2, 2024 22:58
@JohnPhamous JohnPhamous merged commit 7b04939 into main Jul 3, 2024
1 check passed
@JohnPhamous JohnPhamous deleted the fix/exports branch July 3, 2024 23:27
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.

2 participants