Package main typings resolution is not consistent with normal resolution #9854
Labels
Fixed
A PR has been merged for this issue
Help Wanted
You can do this
Suggestion
An idea for TypeScript
Milestone
Don't know if this is intentional or is an unintended bug.
Currently if
package.json/typings
property is not specified, it defaults to read/index.d.ts
, even ifpackage.json/main
is specified as things likedist/index.js
.In contrast, normal (relative) resolution would look for
.d.ts
next to the.js
file.Should tsc also tries to look up
dist/index.d.ts
in the above case?This applies to 1.8 and 2.0.
Original conversation:
blakeembrey/make-error-cause#12
The text was updated successfully, but these errors were encountered: