diff --git a/scripts/clean-apps.ts b/scripts/clean-apps.ts index 9db842b45..02ac985d7 100755 --- a/scripts/clean-apps.ts +++ b/scripts/clean-apps.ts @@ -20,7 +20,11 @@ async function main() { .filter((file) => file.isDirectory()) .map((dir) => dir.name) - folders.map((app) => gitIgnored.map((f) => rmSync(`${folderName}/${app}/${f}`, { recursive: true, force: true }))) + folders.forEach((app) => { + gitIgnored.forEach((f) => { + rmSync(`${folderName}/${app}/${f}`, { recursive: true, force: true }) + }) + }) } main()