create-fleetbo-project 1.2.68 → 1.2.70

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.
@@ -139,6 +139,7 @@ if (command === 'alex') {
139
139
  console.log('');
140
140
  const rawMsg = aiData.message || "I'm ready.";
141
141
  const formattedMsg = wrapText(rawMsg, 85);
142
+ console.log('\\x1b[32mAlex ❯\\x1b[0m \\n ' + formattedMsg);
142
143
  if (aiData.remainingConsultations !== undefined) {
143
144
  const remaining = aiData.remainingConsultations;
144
145
  const limit = aiData.consultationLimit || 50;
@@ -455,6 +456,25 @@ async function setupProject() {
455
456
 
456
457
  process.chdir(projectDir);
457
458
 
459
+ console.log(' [2.5/7] Standardizing Architecture (src/app)...');
460
+ const oldPath = path.join(projectDir, 'src/pages');
461
+ const newPath = path.join(projectDir, 'src/app');
462
+
463
+ if (fs.existsSync(oldPath) && !fs.existsSync(newPath)) {
464
+ try {
465
+ fs.renameSync(oldPath, newPath);
466
+ const appJsPath = path.join(projectDir, 'src/App.js');
467
+ if (fs.existsSync(appJsPath)) {
468
+ let appContent = fs.readFileSync(appJsPath, 'utf8');
469
+ appContent = appContent.replace(/from "\.\/pages\//g, 'from "./app/');
470
+ appContent = appContent.replace(/from '\.\/pages\//g, "from './app/");
471
+ fs.writeFileSync(appJsPath, appContent);
472
+ }
473
+ } catch (err) {
474
+ console.warn(' Architecture migration warning:', err.message);
475
+ }
476
+ }
477
+
458
478
  console.log(' [3/7] Authenticating with Fleetbo Cloud...');
459
479
  const keys = await fetchProjectKeys(bootstrapTokenArg);
460
480
  if (!keys.enterpriseId) throw new Error("Invalid keys.");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-fleetbo-project",
3
- "version": "1.2.68",
3
+ "version": "1.2.70",
4
4
  "description": "Creates a new Fleetbo project.",
5
5
  "main": "install-react-template.js",
6
6
  "bin": {