From dbe4fd335e1498ad11bc0d9b5c48de3a15cfa8f8 Mon Sep 17 00:00:00 2001 From: naskya Date: Sat, 18 Nov 2023 15:00:16 +0900 Subject: [PATCH] refactor (minor): remove unneeded file and make code more readable --- .node-version | 1 - packages/backend/src/boot/master.ts | 4 +--- 2 files changed, 1 insertion(+), 4 deletions(-) delete mode 100644 .node-version diff --git a/.node-version b/.node-version deleted file mode 100644 index 8ddbc0c64..000000000 --- a/.node-version +++ /dev/null @@ -1 +0,0 @@ -v18.16.0 diff --git a/packages/backend/src/boot/master.ts b/packages/backend/src/boot/master.ts index 89f72227a..84767a92c 100644 --- a/packages/backend/src/boot/master.ts +++ b/packages/backend/src/boot/master.ts @@ -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);