-
-
Notifications
You must be signed in to change notification settings - Fork 115
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
[package.json] add types in exports field #463
Conversation
@thibthib The issue occurs to me also. Is there WA in the mean time? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you! Had not noticed the TS update on this, and the proposed change looks just like should.
With yarn 2+ you can use the |
No need for further action from you. I'll release a new prerelease version shortly. |
There was an incompatibility with the |
Thanks a lot @eemeli ! |
Starting from TS 4.7 (see release note), we need to add a types field in the exports object when then path to the .d.ts file doesn’t match the file exposed.
If it isn’t set, we have the following error:
This should fix it by adding the same types as top level, but within the exports object