MCPcopy Create free account
hub / github.com/heygen-com/hyperframes / resolveExistingLocalAsset

Function resolveExistingLocalAsset

packages/lint/src/project.ts:152–160  ·  view source on GitHub ↗
(
  projectDir: string,
  url: string,
)

Source from the content-addressed store, hash-verified

150}
151
152function resolveExistingLocalAsset(
153 projectDir: string,
154 url: string,
155): { resolved: string; rootRelativePath: string } | null {
156 const projectRoot = resolve(projectDir);
157 const resolved = resolveLocalAssetCandidates(projectRoot, url).find(existsSync);
158 if (!resolved) return null;
159 return { resolved, rootRelativePath: relative(projectRoot, resolved) };
160}
161
162function resolveCssAssetCandidates(
163 projectDir: string,

Callers 3

collectExternalStylesFunction · 0.85
collectCssSourcesFunction · 0.85
lintMissingLocalAssetFunction · 0.85

Calls 3

resolveFunction · 0.85
findMethod · 0.65

Tested by

no test coverage detected