ccsini 0.1.57 → 0.1.58
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/index.js +12 -4
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -28022,7 +28022,7 @@ var {
|
|
|
28022
28022
|
} = import__.default;
|
|
28023
28023
|
|
|
28024
28024
|
// src/version.ts
|
|
28025
|
-
var VERSION = "0.1.
|
|
28025
|
+
var VERSION = "0.1.58";
|
|
28026
28026
|
|
|
28027
28027
|
// src/commands/init.ts
|
|
28028
28028
|
init_source();
|
|
@@ -32025,12 +32025,20 @@ function registerSelfCommands(program2) {
|
|
|
32025
32025
|
execSync2(`bun add -g ccsini@${latest}`, { stdio: "inherit" });
|
|
32026
32026
|
updated = true;
|
|
32027
32027
|
} catch {
|
|
32028
|
-
console.log(`Bun
|
|
32028
|
+
console.log(`Bun cache stale, clearing and retrying...
|
|
32029
32029
|
`);
|
|
32030
32030
|
try {
|
|
32031
|
-
execSync2(
|
|
32031
|
+
execSync2("bun pm cache rm", { stdio: "ignore" });
|
|
32032
|
+
execSync2(`bun add -g ccsini@${latest}`, { stdio: "inherit" });
|
|
32032
32033
|
updated = true;
|
|
32033
|
-
} catch {
|
|
32034
|
+
} catch {
|
|
32035
|
+
console.log(`Bun failed, trying npm...
|
|
32036
|
+
`);
|
|
32037
|
+
try {
|
|
32038
|
+
execSync2(`npm install -g ccsini@${latest}`, { stdio: "inherit" });
|
|
32039
|
+
updated = true;
|
|
32040
|
+
} catch {}
|
|
32041
|
+
}
|
|
32034
32042
|
}
|
|
32035
32043
|
if (!updated) {
|
|
32036
32044
|
console.error(`
|