create-astro 4.7.4 → 4.8.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/dist/index.js +4 -4
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -467,7 +467,7 @@ function printHelp({
|
|
|
467
467
|
if (headline) {
|
|
468
468
|
message.push(
|
|
469
469
|
linebreak(),
|
|
470
|
-
`${title(commandName)} ${color.green(`v${"4.
|
|
470
|
+
`${title(commandName)} ${color.green(`v${"4.8.0"}`)} ${headline}`
|
|
471
471
|
);
|
|
472
472
|
}
|
|
473
473
|
if (usage) {
|
|
@@ -547,7 +547,7 @@ async function getContext(argv) {
|
|
|
547
547
|
prompt,
|
|
548
548
|
packageManager,
|
|
549
549
|
username: getName(),
|
|
550
|
-
version: getVersion(packageManager, "astro", "4.
|
|
550
|
+
version: getVersion(packageManager, "astro", "4.6.0"),
|
|
551
551
|
skipHouston,
|
|
552
552
|
fancy,
|
|
553
553
|
dryRun,
|
|
@@ -915,7 +915,7 @@ var FILES_TO_REMOVE = ["CHANGELOG.md", ".codesandbox"];
|
|
|
915
915
|
var FILES_TO_UPDATE = {
|
|
916
916
|
"package.json": (file, overrides) => fs4.promises.readFile(file, "utf-8").then((value) => {
|
|
917
917
|
const indent = /(^\s+)/m.exec(value)?.[1] ?? " ";
|
|
918
|
-
fs4.promises.writeFile(
|
|
918
|
+
return fs4.promises.writeFile(
|
|
919
919
|
file,
|
|
920
920
|
JSON.stringify(
|
|
921
921
|
Object.assign(JSON.parse(value), Object.assign(overrides, { private: void 0 })),
|
|
@@ -1142,7 +1142,7 @@ var FILES_TO_UPDATE2 = {
|
|
|
1142
1142
|
parsedPackageJson.scripts.build = `astro check && ${buildScript}`;
|
|
1143
1143
|
}
|
|
1144
1144
|
const [astroCheckVersion, typescriptVersion] = await Promise.all([
|
|
1145
|
-
getVersion(options.ctx.packageManager, "@astrojs/check", "0.
|
|
1145
|
+
getVersion(options.ctx.packageManager, "@astrojs/check", "0.5.8"),
|
|
1146
1146
|
getVersion(options.ctx.packageManager, "typescript", "5.2.2")
|
|
1147
1147
|
]);
|
|
1148
1148
|
parsedPackageJson.dependencies ??= {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-astro",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.8.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"author": "withastro",
|
|
6
6
|
"license": "MIT",
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
"astro-scripts": "0.0.14"
|
|
36
36
|
},
|
|
37
37
|
"engines": {
|
|
38
|
-
"node": "
|
|
38
|
+
"node": "^18.17.1 || ^20.3.0 || >=21.0.0"
|
|
39
39
|
},
|
|
40
40
|
"publishConfig": {
|
|
41
41
|
"provenance": true
|