-
-
Notifications
You must be signed in to change notification settings - Fork 168
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
New version doesn't work with -r flag #144
Comments
Are you able to reproduce this without nodemon? |
Yes, the command like that will also produce an error:
For version |
Works fine for me. Please provide a reproduction repository link. |
Can confirm that downgrading to |
Can you provide a minimal reproduction? I can't help if I can't reproduce it. |
git clone https://github.com/moltar/tsx-exp
cd tsx-exp
npm i
npm t
|
Looks like something to do with the diff --git a/tsconfig.json b/tsconfig.json
index 326841b..2c57e7c 100644
--- a/tsconfig.json
+++ b/tsconfig.json
@@ -1,6 +1,5 @@
{
"extends": "tsconfigs/nodejs-executable",
"compilerOptions": {
- "baseUrl": "./src"
}
}
\ No newline at end of file
|
@moltar To get the fix, you can either update the cjs-loader dependency with |
Thank you @privatenumber!! |
Bug description
Usually I use
tsx
with nodemon and-r dotenv/config
. Last version blocked that possibility, because tsx -r flag is overriding -r flag from the node environment.I would expect, that -r flag will work like it was working before.
Reproduction
nodemon -r dotenv/config ./main.ts
With nodemon.json configuration:
Environment
Can you contribute a fix?
The text was updated successfully, but these errors were encountered: