Skip to content

Commit

Permalink
🐛 fix: incorrect checking of minor version (closes #190)
Browse files Browse the repository at this point in the history
  • Loading branch information
casperiv0 committed Dec 26, 2021
1 parent 39146df commit bb30647
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/api/src/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ const rootDir = __dirname;
port: process.env.PORT_API ? parseInt(process.env.PORT_API) : 8080,
logger: {
debug: true,
level: process.env.NODE_ENV === "production" ? "off" : "error",
level: process.env.NODE_ENV === "production" ? "error" : "info",
},
mount: {
"/v1": [`${rootDir}/controllers/**/*.ts`],
Expand Down
4 changes: 2 additions & 2 deletions scripts/validate.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ const [major, minor] = process.version.split(".").map((v) => {
});

const is16 = major >= 16;
const isDot6 = minor >= 6;
const isDot6 = major === 16 ? minor >= 6 : !(major < 16);
const isSupportedVersion = is16 && isDot6;
const versionText = chalk.bold(chalk.underline("16.6 or higher"));
const versionText = chalk.bold(chalk.underline("v16.6 or higher"));

if (!isSupportedVersion) {
throw warn(
Expand Down

0 comments on commit bb30647

Please sign in to comment.