From 07c7199adbd08dbc64fee700c19e251f01029075 Mon Sep 17 00:00:00 2001 From: Dorian Niemiec Date: Sat, 24 Aug 2024 19:43:02 +0200 Subject: [PATCH] Add log, mods, and temp directory creation in output directory --- esbuild.config.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/esbuild.config.js b/esbuild.config.js index c41252c..cdc5279 100644 --- a/esbuild.config.js +++ b/esbuild.config.js @@ -103,6 +103,9 @@ if (fs.existsSync(__dirname + "/dist")) { else fs.rmdirSync(__dirname + "/dist", {recursive: true}); } fs.mkdirSync(__dirname + "/dist"); +fs.mkdirSync(__dirname + "/dist/log"); +fs.mkdirSync(__dirname + "/dist/mods"); +fs.mkdirSync(__dirname + "/dist/temp"); // Remove the out directory if exists, and create a new one. if (fs.existsSync(__dirname + "/out")) {