create-astro 4.4.0 โ 4.5.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 +23 -35
- package/package.json +1 -1
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.0"}`)} ${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),
|
|
@@ -1050,7 +1042,7 @@ var FILES_TO_UPDATE2 = {
|
|
|
1050
1042
|
"package.json": async (file, options) => {
|
|
1051
1043
|
try {
|
|
1052
1044
|
if (options.ctx.install)
|
|
1053
|
-
await shell(options.ctx.packageManager, ["
|
|
1045
|
+
await shell(options.ctx.packageManager, ["add", "@astrojs/check", "typescript"], {
|
|
1054
1046
|
cwd: path6.dirname(file),
|
|
1055
1047
|
stdio: "ignore"
|
|
1056
1048
|
});
|
|
@@ -1059,12 +1051,8 @@ var FILES_TO_UPDATE2 = {
|
|
|
1059
1051
|
const parsedPackageJson = JSON.parse(data);
|
|
1060
1052
|
const buildScript = parsedPackageJson.scripts?.build;
|
|
1061
1053
|
if (typeof buildScript === "string" && !buildScript.includes("astro check")) {
|
|
1062
|
-
|
|
1063
|
-
|
|
1064
|
-
build: "astro check && " + buildScript
|
|
1065
|
-
}
|
|
1066
|
-
});
|
|
1067
|
-
await writeFile(file, JSON.stringify(newPackageJson, null, indent), "utf-8");
|
|
1054
|
+
parsedPackageJson.scripts.build = `astro check && ${buildScript}`;
|
|
1055
|
+
await writeFile(file, JSON.stringify(parsedPackageJson, null, indent), "utf-8");
|
|
1068
1056
|
}
|
|
1069
1057
|
} catch (err) {
|
|
1070
1058
|
if (err && err.code === "ENOENT")
|