1
0
Fork 0
forked from svrjs/svrjs

Add log, mods, and temp directory creation in output directory

This commit is contained in:
Dorian Niemiec 2024-08-24 19:43:02 +02:00
parent b9bb16b0ed
commit 07c7199adb

View file

@ -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")) {