()
| 167 | } |
| 168 | |
| 169 | function exitProcess(): void { |
| 170 | // Clean up open handles so the process ideally exits gracefully |
| 171 | process.removeListener('message', messageListener); |
| 172 | } |
| 173 | |
| 174 | function execMethod(method: string, args: Array<unknown>): void { |
| 175 | const main = require(file!); |