create-fleetbo-project 1.0.14 → 1.0.15
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.
|
@@ -44,7 +44,13 @@ async function setupProject() {
|
|
|
44
44
|
responseStream.pipe(unzipper.Extract({ path: '.' }))
|
|
45
45
|
.on('finish', resolve).on('error', reject);
|
|
46
46
|
});
|
|
47
|
+
|
|
48
|
+
// --- AJOUTEZ LE BLOC DE DÉBOGAGE ICI ---
|
|
49
|
+
console.log(chalk.yellow('\n[DEBUG] Décompression terminée. Contenu du dossier actuel :'));
|
|
47
50
|
const files = fs.readdirSync('.');
|
|
51
|
+
console.log(files);
|
|
52
|
+
// --- FIN DU BLOC DE DÉBOGAGE ---
|
|
53
|
+
|
|
48
54
|
const extractedDirName = files.find(file => fs.statSync(file).isDirectory());
|
|
49
55
|
if (!extractedDirName) {
|
|
50
56
|
throw new Error("Could not find the extracted template directory after unzipping.");
|