(candidate: string)
| 16 | const currentPlatform = opts?.platform === 'visionos' ? 'ios' : opts?.platform; |
| 17 | |
| 18 | function tryResolve(candidate: string): string | undefined { |
| 19 | try { |
| 20 | return existsSync(candidate) ? candidate : undefined; |
| 21 | } catch { |
| 22 | return undefined; |
| 23 | } |
| 24 | } |
| 25 | |
| 26 | function resolveWithPlatform(basePath: string): string | undefined { |
| 27 | const ext = path.extname(basePath); |
no outgoing calls
no test coverage detected