MCPcopy Create free account
hub / github.com/RtlZeroMemory/Rezi / writeWidgetModule

Function writeWidgetModule

packages/node/src/__tests__/hotStateReload.test.ts:64–72  ·  view source on GitHub ↗
(root: string, label: string)

Source from the content-addressed store, hash-verified

62}
63
64function writeWidgetModule(root: string, label: string): void {
65 mkdirSync(root, { recursive: true });
66 const widgetFile = join(root, "widget.mjs");
67 writeFileSync(
68 widgetFile,
69 [`export function widgetLabel() { return ${JSON.stringify(label)}; }`, ""].join("\n"),
70 "utf8",
71 );
72}
73
74function writeBarePackageModule(workspaceRoot: string, label: string): void {
75 const packageDir = join(workspaceRoot, "node_modules", "@demo", "hsr-pkg");

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected