summaryrefslogtreecommitdiff
path: root/packages/create-astro/create-astro.mjs
diff options
context:
space:
mode:
authorGravatar Fred K. Schott <fkschott@gmail.com> 2021-09-06 01:23:19 -0700
committerGravatar Fred K. Schott <fkschott@gmail.com> 2021-09-06 01:23:19 -0700
commit6185f9f7b15908b48f9ae2e1d532634f5b59c9f9 (patch)
tree12ec4f4a8a469a7d92f2a127ed2e4d34013f6e7c /packages/create-astro/create-astro.mjs
parente686c3c50469d18db93da7ce79ddcac8659c3166 (diff)
parent6dc05575a65bf6bdc6f52848d274b1f333a36076 (diff)
downloadastro-6185f9f7b15908b48f9ae2e1d532634f5b59c9f9.tar.gz
astro-6185f9f7b15908b48f9ae2e1d532634f5b59c9f9.tar.zst
astro-6185f9f7b15908b48f9ae2e1d532634f5b59c9f9.zip
Docs/example and templates v2 (#1100)
Diffstat (limited to 'packages/create-astro/create-astro.mjs')
-rwxr-xr-xpackages/create-astro/create-astro.mjs28
1 files changed, 14 insertions, 14 deletions
diff --git a/packages/create-astro/create-astro.mjs b/packages/create-astro/create-astro.mjs
index 975b921dc..56919b42e 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());