refactor: remove tree-kill dependency by using native child_process.kill and correcting spawn usage
#45877
| Job | Run time |
|---|---|
| 8s | |
| 8s |