From 847fb46f0731ece9f217759884de688866d525ea Mon Sep 17 00:00:00 2001 From: Dorian Niemiec Date: Sat, 9 Nov 2024 20:21:42 +0100 Subject: [PATCH] build: don't create the "out" directory when building for development --- esbuild.config.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/esbuild.config.js b/esbuild.config.js index aa5fb52..5782c40 100644 --- a/esbuild.config.js +++ b/esbuild.config.js @@ -18,8 +18,8 @@ if (!fs.existsSync(__dirname + "/dist/mods")) if (!fs.existsSync(__dirname + "/dist/temp")) fs.mkdirSync(__dirname + "/dist/temp"); -// Create the out directory if it doesn't exist -if (!fs.existsSync(__dirname + "/out")) fs.mkdirSync(__dirname + "/out"); +// Create the out directory if it doesn't exist and if not building for development +if (!isDev && !fs.existsSync(__dirname + "/out")) fs.mkdirSync(__dirname + "/out"); function generateAssets() { // Variables from "svrjs.json" file