bevry / envfile

Parse and write environment files with Node.js
Other
61 stars 10 forks source link

Include types in the `exports` entry of the `package.json` #210

Closed pepicrft closed 11 months ago

pepicrft commented 1 year ago

I tried to use this package from a Typescript project configured to use the NodeNext module resolution but it fails to recognize the types because types is missing in the exports entry of the package.json. This PR adds it.

I'd appreciate if we could release a new version after this change gets merged.

Thanks a lot in advance for the review.

balupton commented 11 months ago

this should now be resolved with v6.21.0 https://github.com/bevry/envfile/commit/0412c0363e7505d1492017408ff83304328366a4#diff-7ae45ad102eab3b6d7e7896acd08c427a9b25b346470d7bc6507b6481575d519

shoutout to my GitHub Sponsors for affording me the time to make this happen