From 112957b6129fd83f493f22252e6344626b98504a Mon Sep 17 00:00:00 2001 From: Fuxing Loh <4266087+fuxingloh@users.noreply.github.com> Date: Fri, 4 Aug 2023 12:21:23 +0800 Subject: [PATCH] fix(contented): logic `watch: boolean` was flipped wrongly (#540) #### What this PR does / why we need it: As per title. --- packages/contented/src/index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/contented/src/index.ts b/packages/contented/src/index.ts index 6cb466d6..87e40f99 100644 --- a/packages/contented/src/index.ts +++ b/packages/contented/src/index.ts @@ -32,9 +32,9 @@ export default { */ async build({ watch = process.env.NODE_ENV === 'development' } = {}): Promise { if (watch) { - await new BuildCommand().execute(); - } else { await new WatchCommand().execute(); + } else { + await new BuildCommand().execute(); } }, /**