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.
@@ -587,7 +587,18 @@ ${plugins.map(p => ` ⚡ ${p}`).join('\n') || ' No plugins selected'}
587
587
  });
588
588
 
589
589
  console.log(completionBox);
590
- console.log(gradient.rainbow('\n✨ Happy coding with Vako! ✨\n'));
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(error.message) + '\n\n' +
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
@@ -21,7 +21,7 @@ const program = new Command();
21
21
  program
22
22
  .name('vako')
23
23
  .description('Vako Framework CLI')
24
- .version('1.3.10');
24
+ .version('1.3.12');
25
25
 
26
26
  // ============= DEV COMMAND =============
27
27
  program
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vako",
3
- "version": "1.3.10",
3
+ "version": "1.3.12",
4
4
  "description": "🚀 Ultra-modern Node.js framework with hot reload, plugins, authentication, TypeScript support, and Next.js integration",
5
5
  "main": "index.js",
6
6
  "types": "types/index.d.ts",