chore(toolchain): upgrade Bun to 1.4.4 and migrate console to TanStack Router

This commit is contained in:
root committed 2026-11-06 00:02:36 +08:00
1 parent b44ebc2ba1
commit 3b9376c75a
134 files changed
+893 -692

No files matched your search

+1 -1
View File
@@ -2,7 +2,7 @@ import type { Hono } from "hono";
import { serveStatic } from "hono/bun";
/**
* 托管 React Router SPA 构建产物(build/client):存在的文件直接返回,
* 托管 TanStack Router SPA 构建产物(build/client):存在的文件直接返回,
* 其余非 /api 的 GET 回退 index.html 交给前端路由。/api 下的未知路径仍走 JSON 404。
* 注意 hono/deno 的 serveStatic 要求 path 相对 root,写绝对路径会 404。
*/
+6 -6
View File
@@ -31,15 +31,15 @@ export const copyFile: typeof fsp.copyFile = async (a, b, mode) => {
return fsp.copyFile(a, b, mode);
};
export const rm: typeof fsp.rm = async (p, o) => {
export const rm: typeof fsp.rm = (async (p: P, o?: import("node:fs").RmOptions) => {
assertLocalPaths("rm", s(p));
return fsp.rm(p, o);
};
return (fsp.rm as (path: P, options?: import("node:fs").RmOptions) => Promise<void>)(p, o);
}) as typeof fsp.rm;
export const rmdir: typeof fsp.rmdir = async (p, o) => {
export const rmdir: typeof fsp.rmdir = (async (p: P, o?: import("node:fs").RmDirOptions) => {
assertLocalPaths("rmdir", s(p));
return fsp.rmdir(p, o);
};
return (fsp.rmdir as (path: P, options?: import("node:fs").RmDirOptions) => Promise<void>)(p, o);
}) as typeof fsp.rmdir;
export const unlink: typeof fsp.unlink = async (p) => {
assertLocalPaths("unlink", s(p));