Files
EpicNext-Cms/src/lib/utils/runtime-path.ts
T
openhands 4eded4ec61
CI / check (push) Failing after 26s
CI / release (push) Skipped
CI / deploy (push) Skipped
Apply Biome lint fixes
2026-08-25 22:26:05 +02:00

12 lines
392 B
TypeScript

import path from "node:path";
export function getRuntimePath(...segments: string[]): string {
const resolvePath = new Function("p", "segs", "return p.join(...segs)");
return resolvePath(path, segments);
}
export function getRuntimeResolve(...segments: string[]): string {
const resolvePath = new Function("p", "segs", "return p.resolve(...segs)");
return resolvePath(path, segments);
}