Add constants file

This commit is contained in:
Asher
2019-02-07 11:47:00 -06:00
parent 81f48b8b06
commit 86d70ec790
8 changed files with 27 additions and 20 deletions

View File

@@ -1,5 +1,6 @@
import * as fs from "fs";
import * as util from "util";
import { isCli } from "./constants";
const oldAccess = fs.access;
const existsWithinBinary = (path: fs.PathLike): Promise<boolean> => {
@@ -24,7 +25,7 @@ export const fillFs = (): void => {
* For impls
*/
if (!process.env.CLI) {
if (!isCli) {
throw new Error("Should not fill FS when not in CLI");
}