aiblueprint-cli 1.4.28 → 1.4.29
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 +20 -8
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -32932,22 +32932,34 @@ async function checkAndInstallDependencies() {
|
|
|
32932
32932
|
return false;
|
|
32933
32933
|
}
|
|
32934
32934
|
};
|
|
32935
|
-
if (
|
|
32935
|
+
if (checkCommand("bun")) {
|
|
32936
|
+
console.log(source_default.gray(" bun already installed, skipping..."));
|
|
32937
|
+
} else {
|
|
32936
32938
|
console.log(source_default.yellow(`
|
|
32937
32939
|
Installing bun...`));
|
|
32938
32940
|
try {
|
|
32939
|
-
execSync("npm install -g bun", {
|
|
32940
|
-
|
|
32941
|
-
|
|
32941
|
+
execSync("npm install -g bun", {
|
|
32942
|
+
stdio: "inherit",
|
|
32943
|
+
timeout: 60000,
|
|
32944
|
+
env: { ...process.env, CI: "true" }
|
|
32945
|
+
});
|
|
32946
|
+
} catch {
|
|
32947
|
+
console.log(source_default.yellow(" ⚠ Failed to install bun. Please install it manually: npm install -g bun"));
|
|
32942
32948
|
}
|
|
32943
32949
|
}
|
|
32944
|
-
if (
|
|
32950
|
+
if (checkCommand("ccusage")) {
|
|
32951
|
+
console.log(source_default.gray(" ccusage already installed, skipping..."));
|
|
32952
|
+
} else {
|
|
32945
32953
|
console.log(source_default.yellow(`
|
|
32946
32954
|
Installing ccusage...`));
|
|
32947
32955
|
try {
|
|
32948
|
-
execSync("npm install -g ccusage", {
|
|
32949
|
-
|
|
32950
|
-
|
|
32956
|
+
execSync("npm install -g ccusage", {
|
|
32957
|
+
stdio: "inherit",
|
|
32958
|
+
timeout: 60000,
|
|
32959
|
+
env: { ...process.env, CI: "true" }
|
|
32960
|
+
});
|
|
32961
|
+
} catch {
|
|
32962
|
+
console.log(source_default.yellow(" ⚠ Failed to install ccusage. Please install it manually: npm install -g ccusage"));
|
|
32951
32963
|
}
|
|
32952
32964
|
}
|
|
32953
32965
|
}
|