From b93533b3811241e8a168a183b896c7093fa8f95c Mon Sep 17 00:00:00 2001 From: weishu Date: Sun, 18 Jan 2026 12:19:13 +0800 Subject: [PATCH] refactor: extract isBunCompiled to separate utils module --- server/src/tunnel/tunnelManager.ts | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/server/src/tunnel/tunnelManager.ts b/server/src/tunnel/tunnelManager.ts index cdffd345..35cf4360 100644 --- a/server/src/tunnel/tunnelManager.ts +++ b/server/src/tunnel/tunnelManager.ts @@ -12,10 +12,7 @@ import { spawn, type Subprocess } from 'bun' import { existsSync } from 'node:fs' import { join } from 'node:path' import { platform, arch, homedir } from 'node:os' - -function isBunCompiled(): boolean { - return typeof process.execPath === 'string' && !process.execPath.includes('bun') -} +import { isBunCompiled } from '../utils/bunCompiled' function getHapiHome(): string { return process.env.HAPI_HOME