ccsini 0.1.20 → 0.1.21
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 +4 -16
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -26476,7 +26476,7 @@ var {
|
|
|
26476
26476
|
} = import__.default;
|
|
26477
26477
|
|
|
26478
26478
|
// src/version.ts
|
|
26479
|
-
var VERSION = "0.1.
|
|
26479
|
+
var VERSION = "0.1.21";
|
|
26480
26480
|
|
|
26481
26481
|
// src/commands/init.ts
|
|
26482
26482
|
init_source();
|
|
@@ -29116,24 +29116,12 @@ function registerSelfCommands(program2) {
|
|
|
29116
29116
|
console.log(`Updating...
|
|
29117
29117
|
`);
|
|
29118
29118
|
const installedWith = detectInstalledWith();
|
|
29119
|
-
|
|
29120
|
-
try {
|
|
29121
|
-
console.log("Removing bun global install...");
|
|
29122
|
-
execSync("bun remove -g ccsini", { stdio: "inherit" });
|
|
29123
|
-
} catch {}
|
|
29124
|
-
}
|
|
29125
|
-
const cmd = `npm install -g ccsini@${latest}`;
|
|
29119
|
+
const cmd = installedWith === "bun" ? `bun add -g ccsini@${latest} --force` : `npm install -g ccsini@${latest}`;
|
|
29126
29120
|
try {
|
|
29127
29121
|
execSync(cmd, { stdio: "inherit" });
|
|
29128
|
-
|
|
29129
|
-
if (installed === latest) {
|
|
29130
|
-
console.log(`
|
|
29122
|
+
console.log(`
|
|
29131
29123
|
Updated to v${latest}`);
|
|
29132
|
-
|
|
29133
|
-
console.log(`
|
|
29134
|
-
Installed version: ${installed} (expected ${latest})`);
|
|
29135
|
-
console.log("Try: npm install -g ccsini@" + latest);
|
|
29136
|
-
}
|
|
29124
|
+
console.log("Restart your terminal to use the new version.");
|
|
29137
29125
|
} catch {
|
|
29138
29126
|
console.error(`
|
|
29139
29127
|
Update failed. Try manually:`);
|