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

Function getResourceRoot

src/core/resource-root.ts:68–87  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

66}
67
68export function getResourceRoot(): string {
69 if (cachedResourceRoot) {
70 return cachedResourceRoot;
71 }
72
73 const explicitRoot = process.env[RESOURCE_ROOT_ENV_VAR];
74 if (explicitRoot) {
75 cachedResourceRoot = path.resolve(explicitRoot);
76 return cachedResourceRoot;
77 }
78
79 const executableRoot = getExecutableResourceRoot();
80 if (executableRoot) {
81 cachedResourceRoot = executableRoot;
82 return cachedResourceRoot;
83 }
84
85 cachedResourceRoot = getPackageRoot();
86 return cachedResourceRoot;
87}
88
89export function getManifestsDir(): string {
90 return path.join(getResourceRoot(), 'manifests');

Callers 6

getSkillSourcePathFunction · 0.90
getManifestsDirFunction · 0.85
getBundledAxePathFunction · 0.85
getBundledFrameworksDirFunction · 0.85

Calls 3

getPackageRootFunction · 0.85
resolveMethod · 0.80

Tested by

no test coverage detected