(sourcePath: string)
| 44 | } |
| 45 | |
| 46 | function getAxeSourceBuildCandidates(sourcePath: string): string[] { |
| 47 | const candidates = [join(sourcePath, '.build', 'release', 'axe')]; |
| 48 | const swiftBuildDir = join(sourcePath, '.build'); |
| 49 | |
| 50 | if (isDirectory(swiftBuildDir)) { |
| 51 | for (const entry of readdirSync(swiftBuildDir, { withFileTypes: true })) { |
| 52 | if (entry.isDirectory() && entry.name.endsWith('-apple-macosx')) { |
| 53 | candidates.push(join(swiftBuildDir, entry.name, 'release', 'axe')); |
| 54 | } |
| 55 | } |
| 56 | } |
| 57 | |
| 58 | return candidates; |
| 59 | } |
| 60 | |
| 61 | function resolveAxePathFromSourceConfig(): string | null { |
| 62 | const value = getConfig().axeSourcePath; |
no test coverage detected