setup: fix crash caused by module dependency

This commit is contained in:
dumbmoron 2024-01-19 22:40:25 +00:00
parent b6e7d73089
commit a1369215c0
No known key found for this signature in database
GPG key ID: C59997C76C6A8E5F

View file

@ -1,9 +1,10 @@
import { existsSync, unlinkSync, appendFileSync } from "fs";
import { createInterface } from "readline";
import { Cyan, Bright } from "./sub/consoleText.js";
import { loadJSON } from "./sub/loadFromFs.js";
import { execSync } from "child_process";
import { version } from "../modules/config.js";
const { version } = loadJSON("./package.json");
let envPath = './.env';
let q = `${Cyan('?')} \x1b[1m`;