2021-09-06 03:25:23 -05:00
|
|
|
#!/usr/bin/env node
|
2024-10-08 04:12:40 -05:00
|
|
|
|
2021-09-06 03:25:23 -05:00
|
|
|
'use strict';
|
|
|
|
|
|
|
|
const currentVersion = process.versions.node;
|
|
|
|
const requiredMajorVersion = parseInt(currentVersion.split('.')[0], 10);
|
2023-09-13 09:40:53 -05:00
|
|
|
const minimumMajorVersion = 18;
|
2021-09-06 03:25:23 -05: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());
|