diff options
author | 2021-09-06 08:25:23 +0000 | |
---|---|---|
committer | 2021-09-06 08:25:23 +0000 | |
commit | b4d1c9bc64f14971339a691f5d860e5a952f6e8b (patch) | |
tree | 2a5a1107e9df1bba1442eda3f0c42298273493fc /packages/create-astro/create-astro.mjs | |
parent | 6185f9f7b15908b48f9ae2e1d532634f5b59c9f9 (diff) | |
download | astro-b4d1c9bc64f14971339a691f5d860e5a952f6e8b.tar.gz astro-b4d1c9bc64f14971339a691f5d860e5a952f6e8b.tar.zst astro-b4d1c9bc64f14971339a691f5d860e5a952f6e8b.zip |
[ci] yarn format
Diffstat (limited to 'packages/create-astro/create-astro.mjs')
-rwxr-xr-x | packages/create-astro/create-astro.mjs | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/packages/create-astro/create-astro.mjs b/packages/create-astro/create-astro.mjs index 56919b42e..975b921dc 100755 --- a/packages/create-astro/create-astro.mjs +++ b/packages/create-astro/create-astro.mjs @@ -1,14 +1,14 @@ -#!/usr/bin/env node
-'use strict';
-
-const currentVersion = process.versions.node;
-const requiredMajorVersion = parseInt(currentVersion.split('.')[0], 10);
-const minimumMajorVersion = 12;
-
-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());
+#!/usr/bin/env node +'use strict'; + +const currentVersion = process.versions.node; +const requiredMajorVersion = parseInt(currentVersion.split('.')[0], 10); +const minimumMajorVersion = 12; + +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()); |