create-astro 4.0.0-rc.2 → 4.0.1
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 +16 -11
- package/package.json +7 -7
package/dist/index.js
CHANGED
|
@@ -388,7 +388,7 @@ function printHelp({
|
|
|
388
388
|
if (headline) {
|
|
389
389
|
message.push(
|
|
390
390
|
linebreak(),
|
|
391
|
-
`${title(commandName)} ${color.green(`v${"4.0.
|
|
391
|
+
`${title(commandName)} ${color.green(`v${"4.0.1"}`)} ${headline}`
|
|
392
392
|
);
|
|
393
393
|
}
|
|
394
394
|
if (usage) {
|
|
@@ -470,6 +470,7 @@ async function getContext(argv) {
|
|
|
470
470
|
username,
|
|
471
471
|
version,
|
|
472
472
|
skipHouston,
|
|
473
|
+
fancy,
|
|
473
474
|
dryRun,
|
|
474
475
|
projectName: projectName2,
|
|
475
476
|
template: template2,
|
|
@@ -625,16 +626,20 @@ import { color as color4, label as label2 } from "@astrojs/cli-kit";
|
|
|
625
626
|
import { random } from "@astrojs/cli-kit/utils";
|
|
626
627
|
async function intro(ctx) {
|
|
627
628
|
if (!ctx.skipHouston) {
|
|
628
|
-
|
|
629
|
+
const hat = ctx.fancy ? random(["\u{1F3A9}", "\u{1F3A9}", "\u{1F451}", "\u{1F9E2}", "\u{1F366}"]) : void 0;
|
|
630
|
+
await say(
|
|
629
631
|
[
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
632
|
+
[
|
|
633
|
+
"Welcome",
|
|
634
|
+
"to",
|
|
635
|
+
label2("astro", color4.bgGreen, color4.black),
|
|
636
|
+
(ctx.version ? color4.green(`v${ctx.version}`) : "") + ",",
|
|
637
|
+
`${ctx.username}!`
|
|
638
|
+
],
|
|
639
|
+
random(welcome)
|
|
635
640
|
],
|
|
636
|
-
|
|
637
|
-
|
|
641
|
+
{ hat }
|
|
642
|
+
);
|
|
638
643
|
await banner(ctx.version);
|
|
639
644
|
} else {
|
|
640
645
|
await banner(ctx.version);
|
|
@@ -794,7 +799,7 @@ async function template(ctx) {
|
|
|
794
799
|
ctx.exit(1);
|
|
795
800
|
}
|
|
796
801
|
}
|
|
797
|
-
var FILES_TO_REMOVE = ["
|
|
802
|
+
var FILES_TO_REMOVE = ["CHANGELOG.md", ".codesandbox"];
|
|
798
803
|
var FILES_TO_UPDATE = {
|
|
799
804
|
"package.json": (file, overrides) => fs4.promises.readFile(file, "utf-8").then((value) => {
|
|
800
805
|
const indent = /(^\s+)/m.exec(value)?.[1] ?? " ";
|
|
@@ -862,7 +867,7 @@ import fs5 from "node:fs";
|
|
|
862
867
|
import { readFile } from "node:fs/promises";
|
|
863
868
|
import path6 from "node:path";
|
|
864
869
|
|
|
865
|
-
// ../../node_modules/.pnpm/strip-json-comments@5.0.
|
|
870
|
+
// ../../node_modules/.pnpm/strip-json-comments@5.0.1/node_modules/strip-json-comments/index.js
|
|
866
871
|
var singleComment = Symbol("singleComment");
|
|
867
872
|
var multiComment = Symbol("multiComment");
|
|
868
873
|
var stripWithoutWhitespace = () => "";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-astro",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"author": "withastro",
|
|
6
6
|
"license": "MIT",
|
|
@@ -26,18 +26,18 @@
|
|
|
26
26
|
"//b": "DEPENDENCIES IS FOR UNBUNDLED PACKAGES",
|
|
27
27
|
"dependencies": {
|
|
28
28
|
"@astrojs/cli-kit": "^0.2.3",
|
|
29
|
-
"
|
|
30
|
-
"
|
|
31
|
-
"
|
|
32
|
-
"mocha": "^9.2.2",
|
|
33
|
-
"node-fetch-native": "^1.2.0",
|
|
29
|
+
"execa": "^8.0.1",
|
|
30
|
+
"giget": "1.1.2",
|
|
31
|
+
"node-fetch-native": "^1.4.0",
|
|
34
32
|
"which-pm-runs": "^1.1.0"
|
|
35
33
|
},
|
|
36
34
|
"devDependencies": {
|
|
37
35
|
"@types/which-pm-runs": "^1.0.0",
|
|
38
36
|
"arg": "^5.0.2",
|
|
37
|
+
"chai": "^4.3.7",
|
|
38
|
+
"mocha": "^10.2.0",
|
|
39
39
|
"strip-ansi": "^7.1.0",
|
|
40
|
-
"strip-json-comments": "^5.0.
|
|
40
|
+
"strip-json-comments": "^5.0.1",
|
|
41
41
|
"astro-scripts": "0.0.14"
|
|
42
42
|
},
|
|
43
43
|
"engines": {
|