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: also export types for node next module resolution #376

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
fix: also export types for node next module resolution
When using node next / node16 module resolution (`exports` field),
then Typescript will no longer check `types` field in package json but
use `types` from the `exports` field that is currently being used.

Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
  • Loading branch information
susnux committed Jul 2, 2024
commit 8f5b6365cb413b14f3376223dde18798905089df
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
".": {
"browser": "./dist/web/index.js",
"react-native": "./dist/react-native/index.js",
"types": "./dist/node/index.d.ts",
"default": "./dist/node/index.js"
},
"./react-native": "./dist/react-native/index.js",
Expand Down
Loading