@jvittechs/jai1-cli 0.1.52 → 0.1.54
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/dist/cli.js +9 -19
- package/dist/cli.js.map +1 -1
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -33,7 +33,7 @@ var NetworkError = class extends Jai1Error {
|
|
|
33
33
|
// package.json
|
|
34
34
|
var package_default = {
|
|
35
35
|
name: "@jvittechs/jai1-cli",
|
|
36
|
-
version: "0.1.
|
|
36
|
+
version: "0.1.54",
|
|
37
37
|
description: "Unified CLI for Jai1 Framework Management and Redmine Context Sync",
|
|
38
38
|
type: "module",
|
|
39
39
|
bin: {
|
|
@@ -4912,9 +4912,13 @@ function detectPackageManager() {
|
|
|
4912
4912
|
stdio: ["pipe", "pipe", "ignore"]
|
|
4913
4913
|
}).trim();
|
|
4914
4914
|
if (jai1Path) {
|
|
4915
|
-
|
|
4916
|
-
if (
|
|
4917
|
-
if (
|
|
4915
|
+
const normalizedPath = jai1Path.toLowerCase().replace(/\\/g, "/");
|
|
4916
|
+
if (normalizedPath.includes("/pnpm/")) return "pnpm";
|
|
4917
|
+
if (normalizedPath.includes("/.yarn/") || normalizedPath.includes("/yarn/")) return "yarn";
|
|
4918
|
+
if (normalizedPath.includes("/.bun/")) return "bun";
|
|
4919
|
+
if (normalizedPath.includes("/.nvm/") || normalizedPath.includes("/node_modules/") || normalizedPath.includes("/lib/node_modules/") || normalizedPath.includes("/npm-global/") || normalizedPath.includes("/usr/local/bin/") || normalizedPath.includes("/usr/bin/") || normalizedPath.includes("/appdata/roaming/npm/") || normalizedPath.includes("/program files/nodejs/")) {
|
|
4920
|
+
return "npm";
|
|
4921
|
+
}
|
|
4918
4922
|
}
|
|
4919
4923
|
} catch {
|
|
4920
4924
|
}
|
|
@@ -4922,21 +4926,7 @@ function detectPackageManager() {
|
|
|
4922
4926
|
if (userAgent.includes("pnpm")) return "pnpm";
|
|
4923
4927
|
if (userAgent.includes("yarn")) return "yarn";
|
|
4924
4928
|
if (userAgent.includes("bun")) return "bun";
|
|
4925
|
-
|
|
4926
|
-
execSync("pnpm --version", { stdio: "ignore" });
|
|
4927
|
-
return "pnpm";
|
|
4928
|
-
} catch {
|
|
4929
|
-
}
|
|
4930
|
-
try {
|
|
4931
|
-
execSync("yarn --version", { stdio: "ignore" });
|
|
4932
|
-
return "yarn";
|
|
4933
|
-
} catch {
|
|
4934
|
-
}
|
|
4935
|
-
try {
|
|
4936
|
-
execSync("bun --version", { stdio: "ignore" });
|
|
4937
|
-
return "bun";
|
|
4938
|
-
} catch {
|
|
4939
|
-
}
|
|
4929
|
+
if (userAgent.includes("npm")) return "npm";
|
|
4940
4930
|
return "npm";
|
|
4941
4931
|
}
|
|
4942
4932
|
function getInstallCommand(packageManager2) {
|