mirror of
https://github.com/CompeyDev/create-guilded-bot.git
synced 2025-01-05 18:59:10 +00:00
10 lines
No EOL
300 B
TypeScript
10 lines
No EOL
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)
|
|
}
|
|
} |