From 079004c17d8586a240d475995395028291778901 Mon Sep 17 00:00:00 2001 From: SikongJueluo Date: Sun, 10 Aug 2025 20:13:12 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E7=94=9F=E6=88=90api?= =?UTF-8?q?=E6=97=B6=EF=BC=8C=E7=BC=BA=E5=A4=B1main.ts=E7=9A=84=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- scripts/GenerateWebAPI.ts | 2 +- src/{ => utils/signalR}/TypedSignalR.Client/index.ts | 0 src/{ => utils/signalR}/TypedSignalR.Client/server.Hubs.ts | 0 src/{ => utils/signalR}/server.Hubs.ts | 0 4 files changed, 1 insertion(+), 1 deletion(-) rename src/{ => utils/signalR}/TypedSignalR.Client/index.ts (100%) rename src/{ => utils/signalR}/TypedSignalR.Client/server.Hubs.ts (100%) rename src/{ => utils/signalR}/server.Hubs.ts (100%) diff --git a/scripts/GenerateWebAPI.ts b/scripts/GenerateWebAPI.ts index 6358155..0917de3 100644 --- a/scripts/GenerateWebAPI.ts +++ b/scripts/GenerateWebAPI.ts @@ -304,7 +304,7 @@ async function generateSignalRClient(): Promise { console.log("Generating SignalR TypeScript client..."); try { const { stdout, stderr } = await execAsync( - "dotnet tsrts --project ./server/server.csproj --output ./src/", + "dotnet tsrts --project ./server/server.csproj --output ./src/utils/signalR", ); if (stdout) console.log(stdout); if (stderr) console.error(stderr); diff --git a/src/TypedSignalR.Client/index.ts b/src/utils/signalR/TypedSignalR.Client/index.ts similarity index 100% rename from src/TypedSignalR.Client/index.ts rename to src/utils/signalR/TypedSignalR.Client/index.ts diff --git a/src/TypedSignalR.Client/server.Hubs.ts b/src/utils/signalR/TypedSignalR.Client/server.Hubs.ts similarity index 100% rename from src/TypedSignalR.Client/server.Hubs.ts rename to src/utils/signalR/TypedSignalR.Client/server.Hubs.ts diff --git a/src/server.Hubs.ts b/src/utils/signalR/server.Hubs.ts similarity index 100% rename from src/server.Hubs.ts rename to src/utils/signalR/server.Hubs.ts