vako 1.3.10 → 1.3.12
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/bin/commands/setup.js +18 -2
- package/bin/vako.js +1 -1
- package/package.json +1 -1
package/bin/commands/setup.js
CHANGED
|
@@ -587,7 +587,18 @@ ${plugins.map(p => ` ⚡ ${p}`).join('\n') || ' No plugins selected'}
|
|
|
587
587
|
});
|
|
588
588
|
|
|
589
589
|
console.log(completionBox);
|
|
590
|
-
|
|
590
|
+
|
|
591
|
+
// Utiliser gradient.rainbow avec fallback sur chalk.green
|
|
592
|
+
try {
|
|
593
|
+
if (gradient && typeof gradient.rainbow === 'function') {
|
|
594
|
+
console.log(gradient.rainbow('\n✨ Happy coding with Vako! ✨\n'));
|
|
595
|
+
} else {
|
|
596
|
+
console.log(chalk.green('\n✨ Happy coding with Vako! ✨\n'));
|
|
597
|
+
}
|
|
598
|
+
} catch (error) {
|
|
599
|
+
// Fallback si gradient.rainbow échoue
|
|
600
|
+
console.log(chalk.green('\n✨ Happy coding with Vako! ✨\n'));
|
|
601
|
+
}
|
|
591
602
|
}
|
|
592
603
|
|
|
593
604
|
/**
|
|
@@ -703,9 +714,14 @@ ${plugins.map(p => ` ⚡ ${p}`).join('\n') || ' No plugins selected'}
|
|
|
703
714
|
async handleError(error) {
|
|
704
715
|
console.log(chalk.red.bold('\n❌ Setup Error\n'));
|
|
705
716
|
|
|
717
|
+
// Éviter d'afficher le message d'erreur si c'est juste chalk.rainbow
|
|
718
|
+
const errorMessage = error.message.includes('chalk.rainbow')
|
|
719
|
+
? 'An error occurred during setup. Please update vako: npm install -g vako@latest'
|
|
720
|
+
: error.message;
|
|
721
|
+
|
|
706
722
|
const errorBox = boxen(
|
|
707
723
|
chalk.red('An error occurred during setup:\n\n') +
|
|
708
|
-
chalk.white(
|
|
724
|
+
chalk.white(errorMessage) + '\n\n' +
|
|
709
725
|
chalk.gray('Please try again or report this issue if it persists.'),
|
|
710
726
|
{
|
|
711
727
|
padding: 1,
|
package/bin/vako.js
CHANGED
package/package.json
CHANGED