create-astro 5.0.5 → 5.0.6
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 +6 -11
- package/package.json +5 -4
package/dist/index.js
CHANGED
|
@@ -470,7 +470,7 @@ function printHelp({
|
|
|
470
470
|
if (headline) {
|
|
471
471
|
message.push(
|
|
472
472
|
linebreak(),
|
|
473
|
-
`${title(commandName)} ${color.green(`v${"5.0.
|
|
473
|
+
`${title(commandName)} ${color.green(`v${"5.0.6"}`)} ${headline}`
|
|
474
474
|
);
|
|
475
475
|
}
|
|
476
476
|
if (usage) {
|
|
@@ -569,7 +569,7 @@ async function getContext(argv) {
|
|
|
569
569
|
packageManager,
|
|
570
570
|
"astro",
|
|
571
571
|
getPackageTag(packageSpecifier),
|
|
572
|
-
"6.1.
|
|
572
|
+
"6.1.9"
|
|
573
573
|
),
|
|
574
574
|
skipHouston,
|
|
575
575
|
fancy,
|
|
@@ -682,15 +682,10 @@ var FILES_TO_REMOVE = ["CHANGELOG.md", ".codesandbox"];
|
|
|
682
682
|
var FILES_TO_UPDATE = {
|
|
683
683
|
"package.json": (file, overrides) => fs.promises.readFile(file, "utf-8").then((value) => {
|
|
684
684
|
const indent = /(^\s+)/m.exec(value)?.[1] ?? " ";
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
null,
|
|
690
|
-
indent
|
|
691
|
-
),
|
|
692
|
-
"utf-8"
|
|
693
|
-
);
|
|
685
|
+
const packageJson = JSON.parse(value);
|
|
686
|
+
packageJson.name = overrides.name;
|
|
687
|
+
delete packageJson.private;
|
|
688
|
+
return fs.promises.writeFile(file, JSON.stringify(packageJson, null, indent), "utf-8");
|
|
694
689
|
})
|
|
695
690
|
};
|
|
696
691
|
function getTemplateTarget(tmpl, ref = "latest") {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-astro",
|
|
3
|
-
"version": "5.0.
|
|
3
|
+
"version": "5.0.6",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"author": "withastro",
|
|
6
6
|
"license": "MIT",
|
|
@@ -30,8 +30,8 @@
|
|
|
30
30
|
},
|
|
31
31
|
"devDependencies": {
|
|
32
32
|
"arg": "^5.0.2",
|
|
33
|
-
"
|
|
34
|
-
"
|
|
33
|
+
"@astrojs/internal-helpers": "0.9.0",
|
|
34
|
+
"astro-scripts": "0.0.14"
|
|
35
35
|
},
|
|
36
36
|
"engines": {
|
|
37
37
|
"node": ">=22.12.0"
|
|
@@ -43,6 +43,7 @@
|
|
|
43
43
|
"build": "astro-scripts build \"src/index.ts\" --bundle && tsc",
|
|
44
44
|
"build:ci": "astro-scripts build \"src/index.ts\" --bundle",
|
|
45
45
|
"dev": "astro-scripts dev \"src/**/*.ts\"",
|
|
46
|
-
"test": "astro-scripts test \"test/**/*.test.
|
|
46
|
+
"test": "astro-scripts test \"test/**/*.test.ts\"",
|
|
47
|
+
"typecheck:tests": "tsc --build tsconfig.test.json"
|
|
47
48
|
}
|
|
48
49
|
}
|