Invert conditional logic for cleanOldFiles call in build process

This commit is contained in:
Seth 2025-01-17 19:34:49 -05:00
parent 5f8a7ad79f
commit e9b90eabc4
No known key found for this signature in database
GPG key ID: 8B7A2C60CDF65CAC

View file

@ -20,7 +20,7 @@ const build = async () => {
...(NOWATCH ? { minify: true } : {}), ...(NOWATCH ? { minify: true } : {}),
}); });
const end = Date.now(); const end = Date.now();
if (NOWATCH) await cleanOldFiles(built.outputs); if (!NOWATCH) await cleanOldFiles(built.outputs);
console.log("Did build", built.success, built.logs); console.log("Did build", built.success, built.logs);
console.log("Build time:", end - start, "ms"); console.log("Build time:", end - start, "ms");
}; };