()
| 27 | |
| 28 | /** Runtime SEA detection — true when running as a packaged native binary. */ |
| 29 | export function detectNativeInstall(): boolean { |
| 30 | const sea = loadSeaModule(); |
| 31 | if (sea === null) return false; |
| 32 | try { |
| 33 | return sea.isSea(); |
| 34 | } catch { |
| 35 | return false; |
| 36 | } |
| 37 | } |
| 38 | |
| 39 | // Path heuristic markers (compared in lowercase; both forward and backward slashes accepted). |
| 40 | const PNPM_PATH_SEGMENT = 'pnpm/global/'; |
nothing calls this directly
no test coverage detected