Resolve paths

Fixes #19.
This commit is contained in:
Asher
2019-03-07 11:24:25 -06:00
parent 87d2e22a6b
commit 3d654a8df7
2 changed files with 11 additions and 9 deletions

View File

@@ -1,3 +1,5 @@
import * as path from "path";
export const isCli = typeof process.env.CLI !== "undefined" && process.env.CLI !== "false";
export const serveStatic = typeof process.env.SERVE_STATIC !== "undefined" && process.env.SERVE_STATIC !== "false";
export const buildDir = process.env.BUILD_DIR;
export const buildDir = process.env.BUILD_DIR ? path.resolve(process.env.BUILD_DIR) : "";