create-fleetbo-project 1.2.63 → 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.
- package/install-react-template.js +12 -2
- package/package.json +1 -1
|
@@ -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
|
-
|
|
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 = () => {
|