Weird watch
Closed this issue · 7 comments
Hi, thanks for your package :)
I have some weird behaviours :
ts-run src --watch
worksts-run src --watch foobar
does not work and show❌ unknown or unexpected option: --watch
ts-run src -w foobar
works
Any ideas ?
Oh thanks for pointing out. What do you think will be the expected behaviour if someone is doing ts-run src --watch foobar
? is the foobar
directory in your case?
Yes I tought that ts-run src --watch foobar
& ts-run src -w foobar
would be the same command because -w
is an alias of --watch
yup, right, supposed to be. I'll try to reproduce this.
Strange. It seems to be working for me. Is it possible for you to reproduce this on stackblitz?
that's embarassing 😟
- work fine on Stackblitz
- work fine on my desktop Win11 x64 node 16
- still not working on my laptop Win 11 x64 node 16
You can close the issue, the issue is not related to your lib, sorry 😝
oh weird 🤔 If you're interested you can try adding console logs in the node_modules/typescript-run
code and see where it is breaking. That might help in debugging and fixing it.