pnpm-catalog-updates 0.7.9 → 0.7.11
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 +7 -9
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -2295,7 +2295,7 @@ var execAsync = promisify(exec);
|
|
|
2295
2295
|
var VersionChecker = class {
|
|
2296
2296
|
static DEFAULT_TIMEOUT = 5e3;
|
|
2297
2297
|
// 5 seconds
|
|
2298
|
-
static DEFAULT_PACKAGE = "
|
|
2298
|
+
static DEFAULT_PACKAGE = "pcu";
|
|
2299
2299
|
/**
|
|
2300
2300
|
* Check if current version is the latest
|
|
2301
2301
|
*/
|
|
@@ -2362,16 +2362,14 @@ var VersionChecker = class {
|
|
|
2362
2362
|
* Perform update without prompting
|
|
2363
2363
|
*/
|
|
2364
2364
|
static async performUpdateAction() {
|
|
2365
|
-
console.log(chalk5.blue("\u{1F504} Updating
|
|
2365
|
+
console.log(chalk5.blue("\u{1F504} Updating pcu..."));
|
|
2366
2366
|
try {
|
|
2367
2367
|
await this.performUpdate();
|
|
2368
2368
|
console.log(chalk5.green("\u2705 Successfully updated! Please restart the command."));
|
|
2369
2369
|
return true;
|
|
2370
2370
|
} catch (error) {
|
|
2371
2371
|
console.error(chalk5.red("\u274C Update failed:"), error);
|
|
2372
|
-
console.log(
|
|
2373
|
-
chalk5.gray("You can manually update with: npm install -g pnpm-catalog-updates@latest")
|
|
2374
|
-
);
|
|
2372
|
+
console.log(chalk5.gray("You can manually update with: npm install -g pcu@latest"));
|
|
2375
2373
|
return false;
|
|
2376
2374
|
}
|
|
2377
2375
|
}
|
|
@@ -2400,10 +2398,10 @@ var VersionChecker = class {
|
|
|
2400
2398
|
*/
|
|
2401
2399
|
static async performUpdate() {
|
|
2402
2400
|
const commands = [
|
|
2403
|
-
"npm install -g
|
|
2404
|
-
"npm update -g
|
|
2405
|
-
"pnpm add -g
|
|
2406
|
-
"yarn global add
|
|
2401
|
+
"npm install -g pcu@latest",
|
|
2402
|
+
"npm update -g pcu",
|
|
2403
|
+
"pnpm add -g pcu@latest",
|
|
2404
|
+
"yarn global add pcu@latest"
|
|
2407
2405
|
];
|
|
2408
2406
|
for (const command of commands) {
|
|
2409
2407
|
try {
|