Gajus Kuizinas
Gajus Kuizinas
Blocked by an issue with zx https://github.com/google/zx/issues/645
Can you try running `turbowatch ./dev.mjs`?
Closing as there is no answer and I cannot replicate this.
This is about scripts that crash. Persistent tasks are not restarted on changes. If you want tasks to be restarted when there are changes, use non-persistent tasks.
Ended up using https://github.com/gajus/roarr-cli
@NickHeiner Just do `turbowatch your-script.ts`
There are still valid use cases
@NickHeiner In that case, you will need to either adopt esm or use something like `node --loader tsx your-script.ts`
> I'm seeing the same issue as @virtuallyunknown just by copying the example from the docs. Same issue with node 18 as well. Is there any example somewhere of it...