mirror of
https://github.com/CompeyDev/create-guilded-bot.git
synced 2024-12-13 13:30:36 +00:00
10 lines
291 B
TypeScript
10 lines
291 B
TypeScript
import * as logger from "../utils/logger";
|
|
|
|
export default function verify() {
|
|
const NODE_VERSION = process.version.split("v")[1] as unknown as number;
|
|
|
|
if (NODE_VERSION! >= 12) {
|
|
logger.error(`Detected node ${NODE_VERSION}. At least node v12 required.`);
|
|
process.exit(1);
|
|
}
|
|
}
|