()
| 16 | let cachedSea: NodeSeaModule | null | undefined; |
| 17 | |
| 18 | function loadSeaModule(): NodeSeaModule | null { |
| 19 | if (cachedSea !== undefined) return cachedSea; |
| 20 | try { |
| 21 | cachedSea = nodeRequire('node:sea') as NodeSeaModule; |
| 22 | } catch { |
| 23 | cachedSea = null; |
| 24 | } |
| 25 | return cachedSea; |
| 26 | } |
| 27 | |
| 28 | /** Runtime SEA detection — true when running as a packaged native binary. */ |
| 29 | export function detectNativeInstall(): boolean { |
no outgoing calls
no test coverage detected