Invert conditional logic for cleanOldFiles call in build process
This commit is contained in:
parent
5f8a7ad79f
commit
e9b90eabc4
1 changed files with 1 additions and 1 deletions
2
index.ts
2
index.ts
|
@ -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");
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Reference in a new issue