Skip to content

fix: add types to exports for package.json#96

Merged
kibertoad merged 1 commit intojorgebucaran:mainfrom
ahnpnl:patch-1
Sep 25, 2022
Merged

fix: add types to exports for package.json#96
kibertoad merged 1 commit intojorgebucaran:mainfrom
ahnpnl:patch-1

Conversation

@ahnpnl
Copy link
Copy Markdown
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
Copy Markdown
Collaborator

thank you!

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

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
Copy Markdown
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