()
| 22 | } |
| 23 | |
| 24 | export 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 | |
| 35 | export function resolvePlayerPath(): string | null { |
| 36 | const d = helperDir(); |