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

Function resolveRuntimePath

packages/cli/src/utils/compositionServer.ts:24–33  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

22}
23
24export function resolveRuntimePath(): string | null {
25 const d = helperDir();
26 const candidates = [
27 resolve(d, "hyperframe-runtime.js"),
28 resolve(d, "..", "hyperframe-runtime.js"),
29 // Monorepo dev: src/<dir>/ → src/ → cli/ → packages/ then into core/dist/
30 resolve(d, "..", "..", "..", "core", "dist", "hyperframe.runtime.iife.js"),
31 ];
32 return candidates.find((p) => existsSync(p)) ?? null;
33}
34
35export function resolvePlayerPath(): string | null {
36 const d = helperDir();

Callers

nothing calls this directly

Calls 3

helperDirFunction · 0.85
resolveFunction · 0.85
findMethod · 0.65

Tested by

no test coverage detected