release: WRNexusJS 0.2.49

This commit is contained in:
2026-07-19 12:29:13 +05:30
parent 1cda2a01b3
commit c72cbbd780
+8 -2
View File
@@ -61,10 +61,16 @@ export async function runBuild(appRoot: string): Promise<void> {
// `.wrn` route files are compiled to `.ts` so Bun.build can bundle them.
let compiledCount = 0;
const importPathFor = (file: string): string => {
if (!file.endsWith(".wrn")) return fwd(file);
const ts = compileWireFile(readFileSync(file, "utf8"));
if (!file.endsWith(".wrn")) {
return fwd(file);
}
const ts = compileWireFile(readFileSync(file, "utf8"), file);
const out = join(compiledDir, `route${compiledCount++}.ts`);
writeFileSync(out, ts, "utf8");
return fwd(out);
};