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

Function resolveSlideshowPath

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

Source from the content-addressed store, hash-verified

43}
44
45export function resolveSlideshowPath(): string | null {
46 const d = helperDir();
47 const candidates = [
48 resolve(d, "..", "..", "..", "player", "dist", "slideshow", "hyperframes-slideshow.global.js"),
49 resolve(d, "hyperframes-slideshow.global.js"),
50 resolve(d, "..", "hyperframes-slideshow.global.js"),
51 ];
52 return candidates.find((p) => existsSync(p)) ?? null;
53}
54
55/** Inject the runtime <script> into composition HTML before </body> (or at the end). */
56export function injectRuntime(html: string): string {

Callers 1

runFunction · 0.85

Calls 3

helperDirFunction · 0.85
resolveFunction · 0.85
findMethod · 0.65

Tested by

no test coverage detected