Other
In many cases, setting NODE_OPTIONS will enable ts-node within other node tools, child processes, and worker threads.
shellNODE_OPTIONS="-r ts-node/register"
shellNODE_OPTIONS="-r ts-node/register"
Or, if you require native ESM support:
shellNODE_OPTIONS="--loader ts-node/esm"
shellNODE_OPTIONS="--loader ts-node/esm"
This tells any node processes which receive this environment variable to install ts-node's hooks before executing other code.