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

Function resolveRelativeTopLevelPaths

src/utils/project-config.ts:207–219  ·  view source on GitHub ↗
(config: ProjectConfig, cwd: string)

Source from the content-addressed store, hash-verified

205}
206
207function resolveRelativeTopLevelPaths(config: ProjectConfig, cwd: string): ProjectConfig {
208 const resolved: ProjectConfig = { ...config };
209 const pathKeys = ['axePath', 'axeSourcePath', 'iosTemplatePath', 'macosTemplatePath'] as const;
210
211 for (const key of pathKeys) {
212 const value = resolved[key];
213 if (typeof value === 'string' && value.length > 0) {
214 resolved[key] = normalizePathValue(value, cwd);
215 }
216 }
217
218 return resolved;
219}
220
221function normalizeSessionDefaultsProfiles(
222 profiles: Record<string, Partial<SessionDefaults>>,

Callers 1

loadProjectConfigFunction · 0.85

Calls 1

normalizePathValueFunction · 0.85

Tested by

no test coverage detected