mirror of
https://github.com/CompeyDev/create-guilded-bot.git
synced 2025-01-07 11:39:09 +00:00
10 lines
300 B
TypeScript
10 lines
300 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)
|
||
|
}
|
||
|
}
|