Refresh UI components and showcase; release updated framework packages

This commit is contained in:
Clintchiz committed 2026-09-20 18:13:24 +05:30
1 parent d800228585
commit c77f5e1cec
293 files changed
+22544 -35778

No files matched your search

+7 -1
View File
@@ -61,7 +61,13 @@ export async function renderComponent(
const dir = join(tmpdir(), "wrnexus-test");
mkdirSync(dir, { recursive: true });
const file = join(dir, `c${seq++}.ts`);
writeFileSync(file, compileWrnFile(source, file), "utf8");
// Temp files otherwise resolve bare imports against the OS temp directory,
// potentially picking up an unrelated global framework installation.
const code = compileWrnFile(source, file).replace(
/from (["'])@wrnexus\/core\1/g,
`from ${JSON.stringify(import.meta.resolve("@wrnexus/core"))}`,
);
writeFileSync(file, code, "utf8");
const mod = (await import(pathToFileURL(file).href)) as {
render?: (props: Record<string, unknown>) => string;
};