privatenumber / tsx

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

Regression with MikroORM introduced with tsx v4.9.1 #541

Closed DASPRiD closed 2 months ago

DASPRiD commented 2 months ago

Acknowledgements

Minimal reproduction URL

https://stackblitz.com/edit/node-wp3mk9

Version

v4.9.1

Node.js version

v20.12.2

Package manager

pnpm

Operating system

Linux

Problem & expected behavior (under 200 words)

TSX v4.9.1 introduced a regression when trying to load .ts config files for MikroORM. This was working fine so far, including v.4.9.0. I only see a single commit for v4.9.1, so that one must have introduced the regression:

https://github.com/privatenumber/tsx/commit/96bc59680c7300ab6f4f740da26fa16e1970c7c0

Contributions

privatenumber commented 2 months ago

Thanks for the report!

I guess we didn't have a test to cover this use case. Would you mind opening a PR with a test (& fix if youre able to)?

privatenumber commented 2 months ago

Based on the reproduction, looks like this was addressed via #544