create-astro 4.8.1 → 4.8.3
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 +8 -8
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -317,7 +317,7 @@ async function shell(command, flags, opts = {}) {
|
|
|
317
317
|
const done = new Promise((resolve) => child.on("close", resolve));
|
|
318
318
|
[stdout2, stderr] = await Promise.all([text(child.stdout), text(child.stderr)]);
|
|
319
319
|
await done;
|
|
320
|
-
} catch
|
|
320
|
+
} catch {
|
|
321
321
|
throw { stdout: stdout2, stderr, exitCode: 1 };
|
|
322
322
|
}
|
|
323
323
|
const { exitCode } = child;
|
|
@@ -339,7 +339,7 @@ async function getRegistry(packageManager) {
|
|
|
339
339
|
const { stdout: stdout2 } = await shell(packageManager, ["config", "get", "registry"]);
|
|
340
340
|
_registry = stdout2?.trim()?.replace(/\/$/, "") || fallback;
|
|
341
341
|
if (!new URL(_registry).host) _registry = fallback;
|
|
342
|
-
} catch
|
|
342
|
+
} catch {
|
|
343
343
|
_registry = fallback;
|
|
344
344
|
}
|
|
345
345
|
return _registry;
|
|
@@ -463,7 +463,7 @@ function printHelp({
|
|
|
463
463
|
if (headline) {
|
|
464
464
|
message.push(
|
|
465
465
|
linebreak(),
|
|
466
|
-
`${title(commandName)} ${color.green(`v${"4.8.
|
|
466
|
+
`${title(commandName)} ${color.green(`v${"4.8.3"}`)} ${headline}`
|
|
467
467
|
);
|
|
468
468
|
}
|
|
469
469
|
if (usage) {
|
|
@@ -540,7 +540,7 @@ async function getContext(argv) {
|
|
|
540
540
|
prompt,
|
|
541
541
|
packageManager,
|
|
542
542
|
username: getName(),
|
|
543
|
-
version: getVersion(packageManager, "astro", "4.
|
|
543
|
+
version: getVersion(packageManager, "astro", "4.14.2"),
|
|
544
544
|
skipHouston,
|
|
545
545
|
fancy,
|
|
546
546
|
dryRun,
|
|
@@ -677,7 +677,7 @@ async function init({ cwd }) {
|
|
|
677
677
|
],
|
|
678
678
|
{ cwd, stdio: "ignore" }
|
|
679
679
|
);
|
|
680
|
-
} catch
|
|
680
|
+
} catch {
|
|
681
681
|
}
|
|
682
682
|
}
|
|
683
683
|
|
|
@@ -1140,8 +1140,8 @@ var FILES_TO_UPDATE2 = {
|
|
|
1140
1140
|
parsedPackageJson.scripts.build = `astro check && ${buildScript}`;
|
|
1141
1141
|
}
|
|
1142
1142
|
const [astroCheckVersion, typescriptVersion] = await Promise.all([
|
|
1143
|
-
getVersion(options.ctx.packageManager, "@astrojs/check", "0.
|
|
1144
|
-
getVersion(options.ctx.packageManager, "typescript", "5.5.
|
|
1143
|
+
getVersion(options.ctx.packageManager, "@astrojs/check", "0.9.2"),
|
|
1144
|
+
getVersion(options.ctx.packageManager, "typescript", "5.5.4")
|
|
1145
1145
|
]);
|
|
1146
1146
|
parsedPackageJson.dependencies ??= {};
|
|
1147
1147
|
parsedPackageJson.dependencies["@astrojs/check"] = `^${astroCheckVersion}`;
|
|
@@ -1231,7 +1231,7 @@ async function verifyTemplate(tmpl, ref) {
|
|
|
1231
1231
|
}
|
|
1232
1232
|
var GIT_RE = /^(?<repo>[\w.-]+\/[\w.-]+)(?<subdir>[^#]+)?(?<ref>#[\w.-]+)?/;
|
|
1233
1233
|
function parseGitURI(input) {
|
|
1234
|
-
const m =
|
|
1234
|
+
const m = GIT_RE.exec(input)?.groups;
|
|
1235
1235
|
if (!m) throw new Error(`Unable to parse "${input}"`);
|
|
1236
1236
|
return {
|
|
1237
1237
|
repo: m.repo,
|