From 24a4a9c27a6d7e487a308cb88aec3913441078b1 Mon Sep 17 00:00:00 2001 From: SrGooglo Date: Wed, 19 Feb 2025 19:57:01 +0000 Subject: [PATCH] fix dist exist check --- packages/wrapper/src/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/wrapper/src/index.js b/packages/wrapper/src/index.js index 2721aa96..66f97fa0 100644 --- a/packages/wrapper/src/index.js +++ b/packages/wrapper/src/index.js @@ -56,7 +56,7 @@ class WebWrapper extends Server { } async updateDistApp() { - if (!fs.existsSync(WebWrapper.appDistPath)) { + if (fs.existsSync(WebWrapper.appDistPath)) { await fs.promises.rm(WebWrapper.appDistPath, { recursive: true }) }