When using "moduleResolution": "node12" (currently requires nightly TS), if exports is specified, then TypeScript will ignore the top-level main, types, etc. Because of this, it cannot find the type definitions. Adding the types to exports fixes this.
When using
"moduleResolution": "node12"
(currently requires nightly TS), ifexports
is specified, then TypeScript will ignore the top-levelmain
,types
, etc. Because of this, it cannot find the type definitions. Adding the types toexports
fixes this.