mirror of
https://github.com/bfloydd/streams.git
synced 2026-07-22 05:49:02 +00:00
dev build goes to root
This commit is contained in:
parent
dc9fbfc21d
commit
f141439989
1 changed files with 2 additions and 2 deletions
|
|
@ -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 });
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue