ts-node supports the following:
{
"compilerOptions": {...},
"ts-node": {
"compilerOptions": {...},
"require": [
"dotenv-flow/config"
]
}
}
In my monorepo, this makes it really easy to keep config out of CLI args. In particular, having access to require makes all my scripts draw env-vars properly with minimum fuss.
I'd like to be able to do the same thing with tsx. I saw a previous ticket where you expose --require, though it's undocumented in the CLI help text. I'm not against using it for the time being, but for dozens of scripts, it's overkill to insert it everywhere.
Thanks for such an awesome project!
ts-nodesupports the following:{ "compilerOptions": {...}, "ts-node": { "compilerOptions": {...}, "require": [ "dotenv-flow/config" ] } }In my monorepo, this makes it really easy to keep config out of CLI args. In particular, having access to
requiremakes all my scripts draw env-vars properly with minimum fuss.I'd like to be able to do the same thing with
tsx. I saw a previous ticket where you expose--require, though it's undocumented in the CLI help text. I'm not against using it for the time being, but for dozens of scripts, it's overkill to insert it everywhere.Thanks for such an awesome project!