create-fleetbo-project 1.2.62 → 1.2.64

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.
@@ -38,11 +38,19 @@ const keyApp = process.env.REACT_KEY_APP;
38
38
  const testerEmail = process.env.REACT_APP_TESTER_EMAIL;
39
39
  const wrapText = (text, maxWidth) => {
40
40
  if (!text) return "";
41
- const words = text.split(' ');
41
+
42
+ // 1. Nettoyage : On remplace les sauts de ligne de l'IA par des espaces pour recréer le flux
43
+ // Cela évite les cassures "en escalier" dans le terminal
44
+ const cleanText = text.replace(/(\r\n|\n|\r)/gm, " ");
45
+
46
+ // 2. Découpage propre par mot (gère les espaces multiples)
47
+ const words = cleanText.split(/\s+/).filter(w => w.length > 0);
48
+
42
49
  let lines = [];
43
- let currentLine = words[0];
50
+ let currentLine = words[0] || "";
44
51
 
45
52
  for (let i = 1; i < words.length; i++) {
53
+ // On vérifie si on dépasse la largeur (85)
46
54
  if (currentLine.length + 1 + words[i].length <= maxWidth) {
47
55
  currentLine += " " + words[i];
48
56
  } else {
@@ -51,6 +59,8 @@ const wrapText = (text, maxWidth) => {
51
59
  }
52
60
  }
53
61
  lines.push(currentLine);
62
+
63
+ // 3. Re-assemblage avec indentation alignée (3 espaces)
54
64
  return lines.join('\n ');
55
65
  };
56
66
  const checkGitSecurity = () => {
@@ -323,11 +333,9 @@ process.on('SIGINT', () => cleanupAndExit(0));
323
333
  process.on('SIGTERM', () => cleanupAndExit(0));
324
334
  async function syncFirebase(keyApp, networkUrl, testerEmail) {
325
335
  try {
326
- await axios.post(UPDATE_NETWORK_URL, { keyApp, networkUrl, tester: testerEmail });
327
-
336
+ await axios.post(UPDATE_NETWORK_URL, { keyApp, networkUrl, tester: testerEmail });
328
337
  console.log(\`\\n\\x1b[32m[Fleetbo]\\x1b[0m -------------------------------------------------------------\`);
329
338
  console.log('\\x1b[32m[Fleetbo] GO GO GO ! FLEETBO STUDIO IS READY \\x1b[0m');
330
- console.log(\`\\x1b[32m[Fleetbo] Link: https://fleetbo.io/studio/\${keyApp}\\x1b[0m\`);
331
339
  console.log('\\x1b[32m[Fleetbo] You can now start coding and previewing in Studio. 🚀\\x1b[0m');
332
340
  console.log(\`\\x1b[32m[Fleetbo]\\x1b[0m -------------------------------------------------------------\`);
333
341
  } catch (err) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-fleetbo-project",
3
- "version": "1.2.62",
3
+ "version": "1.2.64",
4
4
  "description": "Creates a new Fleetbo project.",
5
5
  "main": "install-react-template.js",
6
6
  "bin": {