clean nested and arbitrary profile and target directories

This commit is contained in:
Arpad Borsos
2022-07-09 16:14:38 +02:00
parent 827b33fbd0
commit 86bae2494f
5 changed files with 621 additions and 388 deletions

View File

@@ -42,9 +42,9 @@ async function run() {
if (restoreKey !== key) {
// pre-clean the target directory on cache mismatch
for (const workspace of config.workspaces) {
const packages = await workspace.getPackages();
try {
const packages = await workspace.getPackages();
await cleanTargetDir(workspace.target, packages);
} catch {}
}