create-astro 4.4.1 โ 4.5.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 +31 -40
- package/dist/messages.d.ts +1 -2
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -249,31 +249,24 @@ async function spinner(args) {
|
|
|
249
249
|
}
|
|
250
250
|
var title = (text2) => align(label(text2), "end", 7) + " ";
|
|
251
251
|
var welcome = [
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
`Booo! Let's scare the interwebs!`,
|
|
271
|
-
`Get ready to haunt the internet with Halloween vibes.`,
|
|
272
|
-
`Harness the power of the web for your frightful ideas.`,
|
|
273
|
-
`It's time to conjure up an online spooktacular masterpiece.`,
|
|
274
|
-
`Prepare for a web of Halloween wonders to be woven.`,
|
|
275
|
-
`Chills and thrills await as you embark on your web journey`,
|
|
276
|
-
`The internet is about to get a whole lot creepier thanks to your new project.`
|
|
252
|
+
`Let's claim your corner of the internet.`,
|
|
253
|
+
`I'll be your assistant today.`,
|
|
254
|
+
`Let's build something awesome!`,
|
|
255
|
+
`Let's build something great!`,
|
|
256
|
+
`Let's build something fast!`,
|
|
257
|
+
`Let's build the web we want.`,
|
|
258
|
+
`Let's make the web weird!`,
|
|
259
|
+
`Let's make the web a better place!`,
|
|
260
|
+
`Let's create a new project!`,
|
|
261
|
+
`Let's create something unique!`,
|
|
262
|
+
`Time to build a new website.`,
|
|
263
|
+
`Time to build a faster website.`,
|
|
264
|
+
`Time to build a sweet new website.`,
|
|
265
|
+
`We're glad to have you on board.`,
|
|
266
|
+
`Keeping the internet weird since 2021.`,
|
|
267
|
+
`Initiating launch sequence...`,
|
|
268
|
+
`Initiating launch sequence... right... now!`,
|
|
269
|
+
`Awaiting further instructions.`
|
|
277
270
|
];
|
|
278
271
|
var getName = () => new Promise((resolve) => {
|
|
279
272
|
exec("git config user.name", { encoding: "utf-8" }, (_1, gitName) => {
|
|
@@ -391,7 +384,7 @@ function printHelp({
|
|
|
391
384
|
if (headline) {
|
|
392
385
|
message.push(
|
|
393
386
|
linebreak(),
|
|
394
|
-
`${title(commandName)} ${color.green(`v${"4.
|
|
387
|
+
`${title(commandName)} ${color.green(`v${"4.5.1"}`)} ${headline}`
|
|
395
388
|
);
|
|
396
389
|
}
|
|
397
390
|
if (usage) {
|
|
@@ -477,8 +470,7 @@ async function getContext(argv) {
|
|
|
477
470
|
projectName: projectName2,
|
|
478
471
|
template: template2,
|
|
479
472
|
ref: ref ?? "latest",
|
|
480
|
-
hat: random(["\u{
|
|
481
|
-
//fancy ? random(['๐ฉ', '๐ฉ', '๐ฉ', '๐ฉ', '๐', '๐', '๐งข', '๐ฆ']) : undefined,
|
|
473
|
+
hat: fancy ? random(["\u{1F3A9}", "\u{1F3A9}", "\u{1F3A9}", "\u{1F3A9}", "\u{1F393}", "\u{1F451}", "\u{1F9E2}", "\u{1F366}"]) : void 0,
|
|
482
474
|
yes,
|
|
483
475
|
install: install2 ?? (noInstall ? false : void 0),
|
|
484
476
|
git: git2 ?? (noGit ? false : void 0),
|
|
@@ -521,17 +513,16 @@ async function dependencies(ctx) {
|
|
|
521
513
|
await spinner({
|
|
522
514
|
start: `Installing dependencies with ${ctx.packageManager}...`,
|
|
523
515
|
end: "Dependencies installed",
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
error
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
}
|
|
516
|
+
onError: (e) => {
|
|
517
|
+
error("error", e);
|
|
518
|
+
error(
|
|
519
|
+
"error",
|
|
520
|
+
`Dependencies failed to install, please run ${color2.bold(
|
|
521
|
+
ctx.packageManager + " install"
|
|
522
|
+
)} to install them manually after setup.`
|
|
523
|
+
);
|
|
524
|
+
},
|
|
525
|
+
while: () => install({ packageManager: ctx.packageManager, cwd: ctx.cwd })
|
|
535
526
|
});
|
|
536
527
|
} else {
|
|
537
528
|
await info(
|
|
@@ -1050,7 +1041,7 @@ var FILES_TO_UPDATE2 = {
|
|
|
1050
1041
|
"package.json": async (file, options) => {
|
|
1051
1042
|
try {
|
|
1052
1043
|
if (options.ctx.install)
|
|
1053
|
-
await shell(options.ctx.packageManager, ["
|
|
1044
|
+
await shell(options.ctx.packageManager, ["add", "@astrojs/check", "typescript"], {
|
|
1054
1045
|
cwd: path6.dirname(file),
|
|
1055
1046
|
stdio: "ignore"
|
|
1056
1047
|
});
|
package/dist/messages.d.ts
CHANGED
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
/** @internal Used to mock `process.stdout.write` for testing purposes */
|
|
2
|
-
export declare function setStdout(writable: typeof process.stdout): void;
|
|
3
1
|
export declare function say(messages: string | string[], { clear, hat }?: {
|
|
4
2
|
clear?: boolean | undefined;
|
|
5
3
|
hat?: string | undefined;
|
|
@@ -7,6 +5,7 @@ export declare function say(messages: string | string[], { clear, hat }?: {
|
|
|
7
5
|
export declare function spinner(args: {
|
|
8
6
|
start: string;
|
|
9
7
|
end: string;
|
|
8
|
+
onError?: (error: any) => void;
|
|
10
9
|
while: (...args: any) => Promise<any>;
|
|
11
10
|
}): Promise<void>;
|
|
12
11
|
export declare const title: (text: string) => string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-astro",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.5.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"author": "withastro",
|
|
6
6
|
"license": "MIT",
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
"//a": "MOST PACKAGES SHOULD GO IN DEV_DEPENDENCIES! THEY WILL BE BUNDLED.",
|
|
26
26
|
"//b": "DEPENDENCIES IS FOR UNBUNDLED PACKAGES",
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@astrojs/cli-kit": "^0.3.
|
|
28
|
+
"@astrojs/cli-kit": "^0.3.1",
|
|
29
29
|
"giget": "1.1.2"
|
|
30
30
|
},
|
|
31
31
|
"devDependencies": {
|