create-astro 4.13.2 → 5.0.0-alpha.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/create-astro.mjs CHANGED
@@ -4,7 +4,9 @@
4
4
 
5
5
  const currentVersion = process.versions.node;
6
6
  const requiredMajorVersion = parseInt(currentVersion.split('.')[0], 10);
7
- const minimumMajorVersion = 18;
7
+ // TODO: remove once Stackblitz supports Node 22
8
+ const IS_STACKBLITZ = !!process.versions.webcontainer;
9
+ const minimumMajorVersion = IS_STACKBLITZ ? 20 : 22;
8
10
 
9
11
  if (requiredMajorVersion < minimumMajorVersion) {
10
12
  console.error(`Node.js v${currentVersion} is out of date and unsupported!`);
package/dist/index.js CHANGED
@@ -445,7 +445,7 @@ function printHelp({
445
445
  if (headline) {
446
446
  message.push(
447
447
  linebreak(),
448
- `${title(commandName)} ${color.green(`v${"4.13.2"}`)} ${headline}`
448
+ `${title(commandName)} ${color.green(`v${"5.0.0-alpha.0"}`)} ${headline}`
449
449
  );
450
450
  }
451
451
  if (usage) {
@@ -538,7 +538,7 @@ async function getContext(argv) {
538
538
  packageManager,
539
539
  "astro",
540
540
  getPackageTag(packageSpecifier),
541
- "5.14.5"
541
+ "6.0.0-alpha.0"
542
542
  ),
543
543
  skipHouston,
544
544
  fancy,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-astro",
3
- "version": "4.13.2",
3
+ "version": "5.0.0-alpha.0",
4
4
  "type": "module",
5
5
  "author": "withastro",
6
6
  "license": "MIT",
@@ -33,7 +33,7 @@
33
33
  "astro-scripts": "0.0.14"
34
34
  },
35
35
  "engines": {
36
- "node": "18.20.8 || ^20.3.0 || >=22.0.0"
36
+ "node": "^20.19.5 || >=22.12.0"
37
37
  },
38
38
  "publishConfig": {
39
39
  "provenance": true