-
Notifications
You must be signed in to change notification settings - Fork 188
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
Provide exports.types
in package.json
#293
Conversation
@alex-grover is attempting to deploy a commit to the LFE Team on Vercel. A member of the Team first needs to authorize it. |
Interesting, I really appreciate the PR! I'm going to look into this a bit more to make sure this config is correct before merging. Thanks 🙏 |
of course, let me know if I can help! |
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
Seeing |
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.
This seems to do the trick! Approving but just doing a bit more testing in the background to triple check things. Thanks again 🫡
This PR is now available in ConnectKit Thanks @alex-grover 🙏 |
Related to #229, the
package.json
is not configured correctly. You can see the warning at https://publint.dev/[email protected] - whenexports
is specified, the top leveltypes
is ignored.The workaround in that issue does work, but ConnectKit + TypeScript is broken with the default
create-next-app
template, so I think it's worth fixing.By my understanding, there are a couple possible resolutions here:
exports
field in the package.json to identify both the js and types file (the approach in this PR).d.ts
file matches the name of the js file (i.e.index.es.d.ts
)I'm not an expert in getting this stuff set up, but I did test by building locally and linking into an existing project. I believe this issue also exists in
connectkit-next-siwe
, and I'm happy to make the same fix there if desired!