wclr / ts-node-dev

Compiles your TS app and restarts when files are modified.
MIT License
3.43k stars 123 forks source link

bad option: --cwd? #341

Closed r3x5ur closed 1 week ago

r3x5ur commented 11 months ago

Issue description

Switching ts-node to ts-node-dev does not work properly error: bad option: --cwd

Context

OS version (is it docker or host?), ts-node-dev version win10 node14 ts-node-dev@2.0.0

Did you try to run with ts-node?

Did you try to run with --files option enabled?

Did you try to run with --debug option enabled?

Do you have a repro example (git repo) with simple steps to reproduce your problem?

use ts-node

ts-node -r tsconfig-paths/register --transpile-only -P packages/server/tsconfig.json --cwd packages/server packages/server/src/main.ts

working fine

use ts-node-dev

 ts-node-dev -r tsconfig-paths/register --transpile-only -P packages/server/tsconfig.json --cwd packages/server packages/server/src/main.ts

error: D:\Program Files\nodejs\node.exe: bad option: --cwd