vako 1.3.7 → 1.3.9

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.
@@ -74,8 +74,13 @@ class SetupExecutor {
74
74
  if (this.config.install) {
75
75
  currentStep++;
76
76
  const spinner8 = createSpinner(`[${currentStep}/${totalSteps}] 📥 Installing dependencies...`).start();
77
- await this.installDependencies();
78
- spinner8.success({ text: `📥 Dependencies installed successfully` });
77
+ try {
78
+ await this.installDependencies();
79
+ spinner8.success({ text: `📥 Dependencies installed successfully` });
80
+ } catch (error) {
81
+ // Ne pas faire planter le setup si l'installation échoue
82
+ spinner8.warning({ text: `📥 Dependencies installation skipped (run 'npm install' manually)` });
83
+ }
79
84
  }
80
85
 
81
86
  } catch (error) {
@@ -327,12 +332,24 @@ module.exports = router;
327
332
 
328
333
  async installDependencies() {
329
334
  try {
335
+ // Afficher un message informatif
336
+ console.log(chalk.gray(' Installing dependencies... This may take a few minutes.'));
337
+
330
338
  execSync('npm install', {
331
339
  cwd: this.projectPath,
332
- stdio: 'pipe'
340
+ stdio: 'pipe',
341
+ timeout: 300000 // 5 minutes timeout
333
342
  });
343
+
344
+ console.log(chalk.green(' ✓ Dependencies installed successfully'));
334
345
  } catch (error) {
335
- throw new Error('Failed to install dependencies. Run "npm install" manually.');
346
+ // Ne pas faire planter le setup si l'installation échoue
347
+ console.log(chalk.yellow(' ⚠ Installation des dépendances échouée'));
348
+ console.log(chalk.gray(' Vous pouvez installer manuellement avec: npm install'));
349
+ console.log(chalk.gray(' Le projet a été créé avec succès, vous pouvez continuer.'));
350
+
351
+ // Ne pas throw l'erreur pour ne pas faire planter le setup
352
+ // L'utilisateur peut installer manuellement après
336
353
  }
337
354
  }
338
355
 
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.7');
24
+ .version('1.3.9');
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.7",
3
+ "version": "1.3.9",
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",