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 package.json exports #2278

Merged
merged 1 commit into from
Nov 11, 2023

Conversation

tennox
Copy link
Contributor

@tennox tennox commented Jun 15, 2023

Needed for newer typescript with certain moduleResolution settings.

Found the explanation & solution here:
gxmari007/vite-plugin-eslint#60

& the docs for the option here:
https://nodejs.org/api/packages.html#packages_exports (with types being defined here: https://nodejs.org/api/packages.html#conditional-exports)

Needed for newer typescript with certain moduleResolution settings.

Found the explanation & solution here:
gxmari007/vite-plugin-eslint#60

& the docs for the option here:
https://nodejs.org/api/packages.html#packages_exports (with `types` being defined here: https://nodejs.org/api/packages.html#conditional-exports)
@tennox tennox requested a review from a team as a code owner June 15, 2023 08:27
@tennox
Copy link
Contributor Author

tennox commented Jun 15, 2023

Test using:

pnpm add github:tennox/web3.storage#HACK-subrepo

@tennox tennox changed the title Update package.json exports to include types fix: add types to package.json exports Jun 15, 2023
rygine added a commit to xmtp-labs/xmtp-inbox-web that referenced this pull request Jun 23, 2023
Unfortunately, the `web3.storage` package doesn't properly export its types.

This PR patches `package.json` of `web3.storage` to export the types while we wait
for the [official patch](web3-storage/web3.storage#2278) to land.
@gobengo gobengo merged commit 3ad45ab into web3-storage:main Nov 11, 2023
1 of 2 checks passed
@tennox tennox deleted the package-json-types-export branch November 11, 2023 00:55
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.

None yet

2 participants