diff --git a/generators/generateCards.js b/generators/generateCards.js index ea91bb222..1db668e65 100644 --- a/generators/generateCards.js +++ b/generators/generateCards.js @@ -35,7 +35,7 @@ async function generateIncludes() { }); } catch(error){ console.error(`[ ERROR x MISSING METADATA ]\n\t - Concerning folder: "${projectPath}"`); - fs.rmdirSync(projectPath) + fs.rmSync(projectPath, { recursive: true }) console.error(`\t|____ Folder removed: "${projectPath}"\n`); } }