TypeScript
fix(desktop): find linuxbrew node for the WSL backend (#7827)
Cody Ray Hoefte4422eec752e
diff --git a/packages/ssh/src/tunnel.test.ts b/packages/ssh/src/tunnel.test.tsindex 980107d19a8..a3c049323bc 100644--- a/packages/ssh/src/tunnel.test.ts+++ b/packages/ssh/src/tunnel.test.ts@@ -227,6 +227,7 @@ describe("ssh tunnel scripts", () => {assert.include(script, "remote_node_satisfies_engine()");assert.include(script, "function satisfiesSemverRange");assert.include(script, "satisfiesSemverRange(rawVersion, range)");+ assert.include(script, 'prepend_path_if_dir "/home/linuxbrew/.linuxbrew/bin"');assert.include(script, 'prepend_path_if_dir "$VOLTA_HOME/bin"');assert.include(script, 'prepend_path_if_dir "$HOME/.asdf/shims"');assert.include(script, 'prepend_path_if_dir "$HOME/.local/share/mise/shims"');diff --git a/packages/ssh/src/tunnel.ts b/packages/ssh/src/tunnel.tsindex 135cb7decae..0473ffeceae 100644--- a/packages/ssh/src/tunnel.ts+++ b/packages/ssh/src/tunnel.ts@@ -360,6 +360,7 @@ ensure_remote_node_path() {prepend_path_if_dir "$HOME/.local/bin"prepend_path_if_dir "$HOME/bin"prepend_path_if_dir "/opt/homebrew/bin"+ prepend_path_if_dir "/home/linuxbrew/.linuxbrew/bin"prepend_path_if_dir "/usr/local/bin"prepend_path_if_dir "/usr/bin"prepend_path_if_dir "/bin"