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 if package.json/main is specified as things like dist/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
Don't know if this is intentional or is an unintended bug.
Currently if
package.json/typingsproperty is not specified, it defaults to read/index.d.ts, even ifpackage.json/mainis specified as things likedist/index.js.In contrast, normal (relative) resolution would look for
.d.tsnext to the.jsfile.Should tsc also tries to look up
dist/index.d.tsin the above case?This applies to 1.8 and 2.0.
Original conversation:
blakeembrey/make-error-cause#12