True when running as a compiled single-executable (SEA / native) binary.
()
| 164 | |
| 165 | /** True when running as a compiled single-executable (SEA / native) binary. */ |
| 166 | function detectSea(): boolean { |
| 167 | const sea = loadSeaModule(); |
| 168 | if (sea === null) return false; |
| 169 | try { |
| 170 | return sea.isSea(); |
| 171 | } catch { |
| 172 | return false; |
| 173 | } |
| 174 | } |
| 175 | |
| 176 | /** |
| 177 | * Absolute path to the CLI entry that should be re-execed to run the daemon. |
no test coverage detected