ccgather 1.3.30 → 1.3.31
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 +2 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -518,7 +518,7 @@ function getVersion() {
|
|
|
518
518
|
const pkg = JSON.parse((0, import_fs.readFileSync)(pkgPath, "utf-8"));
|
|
519
519
|
return pkg.version;
|
|
520
520
|
} catch {
|
|
521
|
-
return "
|
|
521
|
+
return "0.0.0";
|
|
522
522
|
}
|
|
523
523
|
}
|
|
524
524
|
var VERSION = getVersion();
|
|
@@ -1186,7 +1186,7 @@ async function promptForUpdate(latestVersion) {
|
|
|
1186
1186
|
console.log(` ${import_chalk3.default.cyan("\u2192")} Updating to ${import_chalk3.default.green(`ccgather@${latestVersion}`)}...`);
|
|
1187
1187
|
console.log();
|
|
1188
1188
|
const { spawn } = await import("child_process");
|
|
1189
|
-
const child = spawn("
|
|
1189
|
+
const child = spawn("npm", ["exec", "--yes", "--", `ccgather@${latestVersion}`], {
|
|
1190
1190
|
stdio: "inherit",
|
|
1191
1191
|
shell: true
|
|
1192
1192
|
});
|