From e9b90eabc4415ba426f384c1876236ad5c46bfb0 Mon Sep 17 00:00:00 2001 From: wont-stream Date: Fri, 17 Jan 2025 19:34:49 -0500 Subject: [PATCH] Invert conditional logic for cleanOldFiles call in build process --- index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.ts b/index.ts index cffd9eb..f26b717 100644 --- a/index.ts +++ b/index.ts @@ -20,7 +20,7 @@ const build = async () => { ...(NOWATCH ? { minify: true } : {}), }); 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("Build time:", end - start, "ms"); };