privatenumber / tsx

⚡️ TypeScript Execute | The easiest way to run TypeScript in Node.js
https://tsx.is
MIT License
9.42k stars 144 forks source link

fix(cjs/api): resolve correct module and types when imported #566

Closed brc-dd closed 4 months ago

brc-dd commented 4 months ago

Currently the resolved types for tsx/cjs/api are broken/wrong for some moduleResolutions. Also, resolve to dist/cjs/api/index.mjs when imported.

image
privatenumber commented 4 months ago

Thank you @brc-dd !

privatenumber commented 4 months ago

:tada: This issue has been resolved in v4.11.1

If you appreciate this project, please consider supporting this project by sponsoring :heart: :pray: