@gorlitzer-labs/seldon 0.1.3 → 0.1.5
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.
- package/bin/seldon.js +3 -3
- package/modules.mjs +8 -6
- package/package.json +1 -1
package/bin/seldon.js
CHANGED
|
@@ -64,13 +64,13 @@ const pnpmGlobalReady = () => {
|
|
|
64
64
|
} catch { return false; }
|
|
65
65
|
};
|
|
66
66
|
|
|
67
|
-
// Pick the node package manager: --pm=<x> override, else
|
|
68
|
-
//
|
|
67
|
+
// Pick the node package manager: --pm=<x> override (pnpm|bun|npm), else pnpm
|
|
68
|
+
// when it can global-install, else npm (the universal fallback). bun is not
|
|
69
|
+
// auto-preferred — opt in with --pm=bun.
|
|
69
70
|
function nodePM() {
|
|
70
71
|
const ov = (process.argv.find((a) => a.startsWith("--pm=")) || "").split("=")[1];
|
|
71
72
|
if (ov) return ov;
|
|
72
73
|
if (has("pnpm") && pnpmGlobalReady()) return "pnpm";
|
|
73
|
-
if (has("bun")) return "bun";
|
|
74
74
|
return "npm";
|
|
75
75
|
}
|
|
76
76
|
|
package/modules.mjs
CHANGED
|
@@ -83,13 +83,15 @@ export const MODULES = [
|
|
|
83
83
|
export const byId = Object.fromEntries(MODULES.map((m) => [m.id, m]));
|
|
84
84
|
|
|
85
85
|
/** External tools we can probe, and how a user installs each (macOS-first hint). */
|
|
86
|
+
// Hints are cross-platform on purpose — name the tool + where to get it, never
|
|
87
|
+
// assume a package manager (this ships to anyone, not one machine).
|
|
86
88
|
export const DEPS = {
|
|
87
|
-
node: { probe: "node --version", hint: "
|
|
88
|
-
tmux: { probe: "tmux -V", hint: "brew
|
|
89
|
-
sops: { probe: "sops --version", hint: "brew
|
|
90
|
-
age: { probe: "age --version", hint: "brew
|
|
91
|
-
tailscale:{ probe: "tailscale version", hint: "
|
|
92
|
-
python3: { probe: "python3 --version", hint: "
|
|
89
|
+
node: { probe: "node --version", hint: "Node 20+ — nodejs.org / nvm / your package manager" },
|
|
90
|
+
tmux: { probe: "tmux -V", hint: "tmux — your package manager (brew · apt · dnf · pacman · pkg)" },
|
|
91
|
+
sops: { probe: "sops --version", hint: "sops — github.com/getsops/sops/releases (or brew · apt)" },
|
|
92
|
+
age: { probe: "age --version", hint: "age — github.com/FiloSottile/age/releases (or brew · apt)" },
|
|
93
|
+
tailscale:{ probe: "tailscale version", hint: "tailscale — tailscale.com/download" },
|
|
94
|
+
python3: { probe: "python3 --version", hint: "Python 3.11+ — python.org / your package manager" },
|
|
93
95
|
};
|
|
94
96
|
|
|
95
97
|
/** Expand a selection to include hard requires (factory -> apiary, foundation). */
|