@ijuantm/simpl-addon 2.4.5 → 2.4.7
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/install.js +4 -3
- package/package.json +1 -1
package/install.js
CHANGED
|
@@ -452,7 +452,7 @@ const main = async () => {
|
|
|
452
452
|
process.exit(1);
|
|
453
453
|
}
|
|
454
454
|
|
|
455
|
-
log(' 🧰 Fetching available add-ons...', 'bold');
|
|
455
|
+
if (!directName) log(' 🧰 Fetching available add-ons...', 'bold');
|
|
456
456
|
|
|
457
457
|
let addons;
|
|
458
458
|
|
|
@@ -466,9 +466,8 @@ const main = async () => {
|
|
|
466
466
|
process.exit(1);
|
|
467
467
|
}
|
|
468
468
|
|
|
469
|
-
console.log();
|
|
470
|
-
|
|
471
469
|
if (addons.length === 0) {
|
|
470
|
+
console.log();
|
|
472
471
|
log(` ${COLORS.yellow}⚠${COLORS.reset} No add-ons available for this version`);
|
|
473
472
|
console.log();
|
|
474
473
|
process.exit(0);
|
|
@@ -478,6 +477,7 @@ const main = async () => {
|
|
|
478
477
|
|
|
479
478
|
if (directName) {
|
|
480
479
|
if (!addons.includes(directName)) {
|
|
480
|
+
console.log();
|
|
481
481
|
log(` ${COLORS.red}✗${COLORS.reset} Add-on ${COLORS.bold}${directName}${COLORS.reset} not found`, 'red');
|
|
482
482
|
console.log();
|
|
483
483
|
log(` ${COLORS.bold}Available add-ons:${COLORS.reset}`, 'blue');
|
|
@@ -487,6 +487,7 @@ const main = async () => {
|
|
|
487
487
|
}
|
|
488
488
|
addonName = directName;
|
|
489
489
|
} else {
|
|
490
|
+
console.log();
|
|
490
491
|
log(` ${COLORS.bold}Available add-ons:${COLORS.reset}`, 'blue');
|
|
491
492
|
addons.forEach((name, index) => log(` ${COLORS.cyan}${index + 1}.${COLORS.reset} ${name}`));
|
|
492
493
|
console.log();
|