refactor: migrate legacy wire namespace to wrn
Quality / quality (ubuntu-latest) (push) Failing after 9m49s
Quality / quality (windows-latest) (push) Canceled after 0s

This commit is contained in:
2026-08-12 18:51:15 +05:30
parent ec23dd4c93
commit 2c960fc1dc
488 changed files with 27306 additions and 19063 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "@wrnexus/router",
"version": "0.8.8",
"version": "0.8.9",
"type": "module",
"main": "src/index.ts",
"exports": {
+2 -2
View File
@@ -124,7 +124,7 @@ function routeFromRaw(raw: string, file: string): Route {
return { raw, file, regex, paramNames, paramMeta };
}
function embeddedWireRoutes(pageFiles: ScannedFile[]): Pick<Router, "api" | "realtime"> {
function embeddedWrnRoutes(pageFiles: ScannedFile[]): Pick<Router, "api" | "realtime"> {
const api: Route[] = [];
const realtime: Route[] = [];
@@ -179,7 +179,7 @@ function mergeExternalRoutes(
/** Scan an app directory and build all route tables. */
export function buildRouter(appDir: string, opts: RouterOptions = {}): Router {
const pageFiles = scanDir(join(appDir, "pages"));
const embedded = embeddedWireRoutes(pageFiles);
const embedded = embeddedWrnRoutes(pageFiles);
const external = opts.externalRoutes ?? [];
const externalPages = external
.filter((route) => route.kind === "page")