@gorlitzer-labs/seldon 0.1.4 → 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/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
|
|