True when running as a compiled single-executable (SEA / native) binary.
()
| 20 | |
| 21 | /** True when running as a compiled single-executable (SEA / native) binary. */ |
| 22 | function detectSea(): boolean { |
| 23 | const sea = loadSeaModule(); |
| 24 | if (sea === null) return false; |
| 25 | try { |
| 26 | return sea.isSea(); |
| 27 | } catch { |
| 28 | return false; |
| 29 | } |
| 30 | } |
| 31 | |
| 32 | export function resolveSupervisorProgram( |
| 33 | argv: readonly string[] = process.argv, |
no test coverage detected