refactor (minor): remove unneeded file and make code more readable

This commit is contained in:
naskya 2023-11-18 15:00:16 +09:00
parent 14d32d420f
commit dbe4fd335e
Signed by: naskya
GPG key ID: 164DFF24E2D40139
2 changed files with 1 additions and 4 deletions

View file

@ -1 +0,0 @@
v18.16.0

View file

@ -148,9 +148,7 @@ function showNodejsVersion(): void {
nodejsLogger.info(`Version ${process.version} detected.`);
const minVersion = fs
.readFileSync(`${_dirname}/../../../../.node-version`, "utf-8")
.trim();
const minVersion = "v18.16.0";
if (semver.lt(process.version, minVersion)) {
nodejsLogger.error(`At least Node.js ${minVersion} required!`);
process.exit(1);