0
Fork 0
mirror of https://github.com/withastro/astro.git synced 2024-12-16 21:46:22 -05:00
astro/packages/create-astro/create-astro.mjs
Emanuele Stoppa 2a1536d091
chore: move lint rules to Biome (#12145)
* chore: move lint rules to Astro

* better suppression system

* revert

* format code

* address more linting files

* address more linting files
2024-10-08 10:12:40 +01:00

15 lines
464 B
JavaScript
Executable file

#!/usr/bin/env node
'use strict';
const currentVersion = process.versions.node;
const requiredMajorVersion = parseInt(currentVersion.split('.')[0], 10);
const minimumMajorVersion = 18;
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());