-
Notifications
You must be signed in to change notification settings - Fork 46
Open
Description
For example:
- https://publint.dev/@graphitation/apollo-mock-client@0.12.1
- https://arethetypeswrong.github.io/?p=%40graphitation%2Fapollo-mock-client%400.12.1 (note that it says "this is a bug")
#349 did this incorrectly; types needs to appear first if the intent is to share it between the two other conditions, like:
"exports": {
".": {
"types": "./lib/index.d.ts"
"import": "./lib/index.mjs",
"require": "./lib/index.js"
}
},
The only reason it "works" in the existing case is because TS matches require, finds the .js, then looks for .d.ts next to it, and that works. But for import, it finds .mjs, then looks for .d.mts next to it, and finds nothing, so fails.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels