cf17dedac3
Move 34 flat modules into cas/, registry/, bundle/, extract/, engine/, util/. Move gc.ts to engine/ (was in cas/) to avoid cas→engine reverse dependency. Dependency direction: util ← cas ← extract ← engine, util ← registry ← bundle. No logic changes — only file locations and import paths. Refs #102
9 lines
297 B
TypeScript
9 lines
297 B
TypeScript
import { pathToFileURL } from "node:url";
|
|
|
|
/**
|
|
* Dynamic-import a workflow bundle path (see {@link extractBundleExports} — symlink must exist first).
|
|
*/
|
|
export async function importWorkflowBundleModule(bundlePath: string): Promise<unknown> {
|
|
return import(pathToFileURL(bundlePath).href);
|
|
}
|