workaround for ts-node in package.json script
- many existing projects use package.json script with ts-node.
- due to https://github.com/denoland/deno/issues/17176 deno can't run them.
have anyone found workaround to run this?
i've considered
```sh
// replace ts-node with run.sh in scripts
#!/bin/sh
"deno") deno run -A $@ ;;
"bun" ) bunx $@ ;;
- ) npx ts-node $@ ;;
esac
```
but it complicates everything.
this is esp. problematic as existing node project still needs
ts-node. if only there were a way to shim ts-node to deno...GitHub
deno run -A npm:ts-node error: Uncaught Error: Empty filepath. at pathDirname (deno:ext/node/02_require.js:50:13) at new Module (deno:ext/node/02_require.js:255:17) at Function.Module._resolveFilen...
GitHub
Version: Deno 2.1.2 This is the same error as #20625, but not in the same context. Trying to create an alias for npx tsx --test (to test codebase on node js) but for some reason when executed throu...