(remoteConfigPath: string)
| 622 | } |
| 623 | |
| 624 | function remoteConfigHasMetroSettings(remoteConfigPath: string): boolean { |
| 625 | try { |
| 626 | const remoteConfig = resolveRemoteConfigProfile({ |
| 627 | configPath: remoteConfigPath, |
| 628 | cwd: process.cwd(), |
| 629 | env: process.env, |
| 630 | }); |
| 631 | const profile = remoteConfig.profile; |
| 632 | return Boolean( |
| 633 | profile.metroPublicBaseUrl || |
| 634 | profile.metroProxyBaseUrl || |
| 635 | profile.metroProjectRoot || |
| 636 | profile.metroKind, |
| 637 | ); |
| 638 | } catch { |
| 639 | return false; |
| 640 | } |
| 641 | } |
| 642 | |
| 643 | function serializeConnectionState( |
| 644 | state: RemoteConnectionState, |
no test coverage detected