bad option: --cwd?
r3x5ur opened this issue · comments
r3x5ur commented
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