Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(ssh): fix reconnect issues and node binary path resolution #2504

Mergedjuliusmarmingemerged 7 commits intomain fromrefs/pull/2504/headmerged by juliusmarminge View on GitHub

Showing 17 changed files with 10 additions and 5 deletions (loading 14).

x
0 of 17 viewed, 17 left
6 additions and 1 deletionapps/desktop/src/main.tsModified
View file
@@ -11,6 +11,7 @@
import * as NetService from "@t3tools/shared/Net";
import { resolveRemoteT3CliPackageSpec } from "@t3tools/ssh/command";
import type { RemoteT3RunnerOptions } from "@t3tools/ssh/tunnel";
+import serverPackageJson from "../../server/package.json" with { type: "json" };
​
import type { DesktopSettings as DesktopSettingsValue } from "./settings/DesktopAppSettings.ts";
import * as DesktopIpc from "./ipc/DesktopIpc.ts";
@@ -65,7 +66,10 @@
): RemoteT3RunnerOptions => {
const devRemoteEntryPath = Option.getOrUndefined(environment.devRemoteT3ServerEntryPath);
if (environment.isDevelopment && devRemoteEntryPath !== undefined) {
- return { nodeScriptPath: devRemoteEntryPath };
+ return {
+ nodeScriptPath: devRemoteEntryPath,
+ nodeEngineRange: serverPackageJson.engines.node,
+ };
return {
packageSpec: resolveRemoteT3CliPackageSpec({
@@ -73,6 +77,7 @@
updateChannel: settings.updateChannel,
isDevelopment: environment.isDevelopment,
}),
+ nodeEngineRange: serverPackageJson.engines.node,
};
};
​