privatenumber / tsx

⚡️ TypeScript Execute | The easiest way to run TypeScript in Node.js
https://tsx.is
MIT License
8.61k stars 132 forks source link

`ChildProcess.kill('SIGINT')` not working #591

Closed MinecraftPEayer closed 2 weeks ago

MinecraftPEayer commented 2 weeks ago

Acknowledgements

Minimal reproduction URL

https://stackblitz.com/edit/node-cvmclj?file=index.ts,child.ts

Problem & expected behavior (under 200 words)

No response

Bugs are expected to be fixed by those affected by it

Compensating engineering work will speed up resolution and support the project

privatenumber commented 2 weeks ago

Your problem here is with npx not relaying the SIGINT. If you call tsx directly, it works fine.