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: add types to exports for package.json #96

Merged
merged 1 commit into from
Sep 25, 2022

Conversation

ahnpnl
Copy link
Contributor

@ahnpnl ahnpnl commented Sep 25, 2022

Summary

types corresponds to main only. main/types will be completely ignored by Node/TypeScript if exports is defined. This is mentioned at microsoft/TypeScript#49160 (comment)

Related to kulshekhar/ts-jest#3800

`types` corresponds to `main` only. `main/types` will be completely ignored by Node/TypeScript if `exports` is defined.

Related to kulshekhar/ts-jest#3800
@kibertoad kibertoad merged commit 12a4291 into jorgebucaran:main Sep 25, 2022
@kibertoad
Copy link
Collaborator

thank you!

@ahnpnl ahnpnl deleted the patch-1 branch September 25, 2022 12:07
@koooge
Copy link

koooge commented Apr 16, 2023

I encountered a build error with "moduleResolution": "node16" and it seems to relate to this. Could you release the next version?

@jorgebucaran
Copy link
Owner

Apologies for the late reply and missing this earlier! I've just published it now. Thanks! 💯

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.

4 participants