From a1b0974053c4f08bfb3dd41d88a4d0642e4f713c Mon Sep 17 00:00:00 2001 From: srgooglo Date: Tue, 4 Oct 2022 15:10:52 +0200 Subject: [PATCH] fix DistIntegrity --- packages/wrapper/src/index.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/wrapper/src/index.js b/packages/wrapper/src/index.js index c51f23af..70b7dc4b 100644 --- a/packages/wrapper/src/index.js +++ b/packages/wrapper/src/index.js @@ -13,7 +13,7 @@ global.remoteRepo = "ragestudio/comty" global.cachePath = path.join(process.cwd(), "cache") global.distPath = path.join(process.cwd(), "dist") -async function checkDistIntegrity() { +function checkDistIntegrity() { // check if dist folder exists if (!fs.existsSync(global.distPath)) { return false @@ -52,6 +52,7 @@ async function runServer() { async function main() { // check if dist is valid if (!checkDistIntegrity()) { + console.log("DistIntegrity is not valid, downloading latest release...") await setupLatestRelease() }