MCPcopy Index your code
hub / github.com/getsentry/XcodeBuildMCP / getAxeSourceBuildCandidates

Function getAxeSourceBuildCandidates

src/utils/axe-helpers.ts:46–59  ·  view source on GitHub ↗
(sourcePath: string)

Source from the content-addressed store, hash-verified

44}
45
46function 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
61function resolveAxePathFromSourceConfig(): string | null {
62 const value = getConfig().axeSourcePath;

Callers 1

Calls 3

isDirectoryFunction · 0.85
isDirectoryMethod · 0.80
pushMethod · 0.80

Tested by

no test coverage detected