From efaf30a86328d663dca49e320ecc2e21f9783fb9 Mon Sep 17 00:00:00 2001 From: MasterGordon Date: Sun, 26 Oct 2025 00:52:56 +0200 Subject: [PATCH] minor improvements --- index.ts | 6 +++--- package.json | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/index.ts b/index.ts index d6b8f08..0614d85 100755 --- a/index.ts +++ b/index.ts @@ -79,7 +79,7 @@ async function isProcessRunning(pid: number): Promise { async function isServerResponsive(port: number): Promise { try { const response = await fetch(`http://localhost:${port}/`, { - signal: AbortSignal.timeout(2000), + signal: AbortSignal.timeout(50), }); return response.ok || response.status === 404; // Server is up if it responds at all } catch { @@ -109,8 +109,8 @@ async function startServer(): Promise { const proc = Bun.spawn( ["dotnet", "csharpier", "server", "--server-port", String(SERVER_PORT)], { - stdout: "inherit", - stderr: "inherit", + stdout: null, + stderr: null, }, ); diff --git a/package.json b/package.json index 6b40887..14584a5 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "csharpierd", - "version": "1.0.2", + "version": "1.0.3", "description": "A persistent CSharpier formatting daemon with automatic server management and idle timeout", "module": "index.ts", "type": "module",