setup: fix crash caused by module dependency

merge pull request #329 from dumbmoron/fix-setup
This commit is contained in:
wukko 2024-01-21 22:47:08 +06:00 committed by GitHub
commit cb1046bd71
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

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`;