@jonaskahn/relo 0.1.14-beta.53.bb73682a → 0.1.14-beta.55.63927546

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/lib/conflict.mjs +11 -0
  2. package/package.json +1 -1
package/lib/conflict.mjs CHANGED
@@ -47,6 +47,9 @@ export function findConflictingRelo({
47
47
  if (selfDir && nodePlatform === 'win32' && inGlobalBin(candidate, selfDir)) {
48
48
  continue;
49
49
  }
50
+ if (nodePlatform === 'win32' && inNodeToolDir(candidate)) {
51
+ continue;
52
+ }
50
53
  return candidate;
51
54
  }
52
55
  return null;
@@ -66,6 +69,14 @@ function inGlobalBin(candidate, selfDir) {
66
69
  return existingPath(dirname(candidate)) === existingPath(dirname(modules));
67
70
  }
68
71
 
72
+ // inNodeToolDir reports whether a Windows candidate sits beside node.exe. A
73
+ // version manager (nvm, Volta, fnm) keeps generic launcher stubs for every
74
+ // global command in such a directory, away from the package's own prefix, so
75
+ // the stub is the command of the install being made, not a second Relo.
76
+ function inNodeToolDir(candidate) {
77
+ return existsSync(join(dirname(candidate), 'node.exe'));
78
+ }
79
+
69
80
  // appBundles lists where the macOS Relo.app may live. The bundle installs
70
81
  // no command on PATH, so the PATH search below never sees it, and a stacked
71
82
  // install would fight it over the home directory and the ports.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jonaskahn/relo",
3
- "version": "0.1.14-beta.53.bb73682a",
3
+ "version": "0.1.14-beta.55.63927546",
4
4
  "description": "One local proxy that lets Codex, Claude Code, Cursor and Grok, etc. Talk to any model, any provider with no config changes",
5
5
  "license": "AGPL-3.0-only",
6
6
  "type": "module",