* Convert the provided exitCode and signal to a single status code. * * During `exit` node provides either a `code` or `signal`, one of which is guaranteed to be * non-null. * * For more details see: https://nodejs.org/api/child_process.html#child_process_event_exit
(exitCode: number | null, signal: NodeJS.Signals | null)
| 157 | * For more details see: https://nodejs.org/api/child_process.html#child_process_event_exit |
| 158 | */ |
| 159 | function statusFromExitCodeAndSignal(exitCode: number | null, signal: NodeJS.Signals | null) { |
| 160 | return exitCode ?? signal ?? -1; |
| 161 | } |
| 162 | |
| 163 | /** |
| 164 | * Gets a process environment object with defaults that can be used for |
no outgoing calls
no test coverage detected