fleetbo-cockpit-cli 1.0.1 → 1.0.3

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.
Files changed (2) hide show
  1. package/cli.js +12 -4
  2. package/package.json +1 -1
package/cli.js CHANGED
@@ -433,10 +433,10 @@ else {
433
433
  try {
434
434
  await axios.post(UPDATE_NETWORK_URL, { keyApp, networkUrl, tester: testerEmail });
435
435
  console.log('\n\x1b[32mEngine started successfully\x1b[0m');
436
- console.log(`\n\x1b[32m[Fleetbo]\x1b[0m -------------------------------------------------------------`);
437
- console.log('\x1b[32m[Fleetbo] \x1b[1mGO GO GO ! FLEETBO STUDIO IS READY\x1b[0m');
438
- console.log('\x1b[32m[Fleetbo] You can now start coding and previewing in Studio. 🚀\x1b[0m');
439
- console.log(`\x1b[32m[Fleetbo]\x1b[0m -------------------------------------------------------------`);
436
+ console.log(`\n\x1b[32m[Fleetbo]\x1b[1m -------------------------------------------------------------`);
437
+ console.log('\x1b[32m[Fleetbo] \x1b[1mGO GO GO ! FLEETBO COCKPIT IS READY\x1b[0m');
438
+ console.log('\x1b[32m[Fleetbo] Start coding and previewing in Cockpit. 🚀\x1b[0m');
439
+ console.log(`\x1b[32m[Fleetbo]\x1b[1m -------------------------------------------------------------`);
440
440
  console.log(`\x1b[34mPilot Instruction ❯\x1b[0m Switch to your Fleetbo Cockpit tab to begin.\n`);
441
441
  } catch (err) {
442
442
  console.error(`[Fleetbo] Sync Error: ${err.message}`);
@@ -445,6 +445,13 @@ else {
445
445
 
446
446
  async function runDevEnvironment() {
447
447
  console.log(`[Fleetbo] 🛡️ Initializing Dev Environment...`);
448
+ try {
449
+ // Mise à jour silencieuse de la DB browserslist pour éliminer le warning "Old Data"
450
+ const npxExec = process.platform === 'win32' ? 'npx.cmd' : 'npx';
451
+ execSync(`${npxExec} update-browserslist-db@latest`, { stdio: 'ignore' });
452
+ } catch (e) {
453
+ // Si ça échoue (pas d'internet), on continue sans bloquer le démarrage
454
+ }
448
455
  killNetworkService();
449
456
  killProcessOnPort(PORT);
450
457
 
@@ -459,6 +466,7 @@ else {
459
466
  shell: true,
460
467
  env: {
461
468
  ...process.env,
469
+ NODE_OPTIONS: '--no-deprecation',
462
470
  BROWSER: 'none',
463
471
  PORT: PORT.toString(),
464
472
  DANGEROUSLY_DISABLE_HOST_CHECK: 'true',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fleetbo-cockpit-cli",
3
- "version": "1.0.1",
3
+ "version": "1.0.3",
4
4
  "description": "Fleetbo CLI - Build native mobile apps with React",
5
5
  "author": "Fleetbo",
6
6
  "license": "MIT",