dev build goes to root

This commit is contained in:
Ben Floyd 2025-05-06 11:48:23 -06:00
parent dc9fbfc21d
commit f141439989

View file

@ -5,9 +5,9 @@ import fs from "fs";
import path from "path";
const prod = (process.argv[2] === "production");
const distDir = "dist";
const distDir = prod ? "dist" : ".";
if (!fs.existsSync(distDir)) {
if (prod && !fs.existsSync(distDir)) {
fs.mkdirSync(distDir, { recursive: true });
}