2021-06-08 15:10:56 +00:00
|
|
|
#!/usr/bin/env node
|
|
|
|
'use strict';
|
|
|
|
|
|
|
|
const currentVersion = process.versions.node;
|
|
|
|
const requiredMajorVersion = parseInt(currentVersion.split('.')[0], 10);
|
2021-06-14 12:20:14 +00:00
|
|
|
const minimumMajorVersion = 12;
|
2021-06-08 15:10:56 +00:00
|
|
|
|
|
|
|
if (requiredMajorVersion < minimumMajorVersion) {
|
|
|
|
console.error(`Node.js v${currentVersion} is out of date and unsupported!`);
|
|
|
|
console.error(`Please use Node.js v${minimumMajorVersion} or higher.`);
|
|
|
|
process.exit(1);
|
|
|
|
}
|
|
|
|
|
|
|
|
import('./dist/index.js').then(({main}) => main());
|