mirror of
https://github.com/withastro/astro.git
synced 2024-12-16 21:46:22 -05:00
b211eadeff
* fix(create-astro): upgrade cli-kit * fix(create-astro): avoid setRawMode error * chore(lint): disable create-astro linting Co-authored-by: Nate Moore <nate@astro.build>
15 lines
495 B
JavaScript
Executable file
15 lines
495 B
JavaScript
Executable file
#!/usr/bin/env node
|
|
/* eslint-disable no-console */
|
|
'use strict';
|
|
|
|
const currentVersion = process.versions.node;
|
|
const requiredMajorVersion = parseInt(currentVersion.split('.')[0], 10);
|
|
const minimumMajorVersion = 14;
|
|
|
|
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());
|