1
0
Fork 0
forked from svrjs/svrjs

build: don't create the "out" directory when building for development

This commit is contained in:
Dorian Niemiec 2024-11-09 20:21:42 +01:00
parent 11e99ead1c
commit 847fb46f07

View file

@ -18,8 +18,8 @@ if (!fs.existsSync(__dirname + "/dist/mods"))
if (!fs.existsSync(__dirname + "/dist/temp")) if (!fs.existsSync(__dirname + "/dist/temp"))
fs.mkdirSync(__dirname + "/dist/temp"); fs.mkdirSync(__dirname + "/dist/temp");
// Create the out directory if it doesn't exist // Create the out directory if it doesn't exist and if not building for development
if (!fs.existsSync(__dirname + "/out")) fs.mkdirSync(__dirname + "/out"); if (!isDev && !fs.existsSync(__dirname + "/out")) fs.mkdirSync(__dirname + "/out");
function generateAssets() { function generateAssets() {
// Variables from "svrjs.json" file // Variables from "svrjs.json" file