create-astro 4.11.2 → 4.11.4
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/actions/shared.d.ts +0 -1
- package/dist/actions/template.d.ts +0 -1
- package/dist/index.js +4 -4
- package/dist/messages.d.ts +0 -7
- package/dist/shell.d.ts +3 -2
- package/package.json +1 -2
package/dist/actions/shared.d.ts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
1
|
import type { Context } from './context.js';
|
|
2
2
|
export declare function template(ctx: Pick<Context, 'template' | 'prompt' | 'yes' | 'dryRun' | 'exit' | 'tasks'>): Promise<void>;
|
|
3
3
|
export declare function getTemplateTarget(tmpl: string, ref?: string): string;
|
|
4
|
-
export default function copyTemplate(tmpl: string, ctx: Context): Promise<void>;
|
package/dist/index.js
CHANGED
|
@@ -280,7 +280,7 @@ function rarity(frequency, emoji) {
|
|
|
280
280
|
// src/messages.ts
|
|
281
281
|
import { exec } from "node:child_process";
|
|
282
282
|
import { stripVTControlCharacters } from "node:util";
|
|
283
|
-
import { color, say as houston, label
|
|
283
|
+
import { color, say as houston, label } from "@astrojs/cli-kit";
|
|
284
284
|
import { align, sleep } from "@astrojs/cli-kit/utils";
|
|
285
285
|
|
|
286
286
|
// src/shell.ts
|
|
@@ -442,7 +442,7 @@ function printHelp({
|
|
|
442
442
|
if (headline) {
|
|
443
443
|
message.push(
|
|
444
444
|
linebreak(),
|
|
445
|
-
`${title(commandName)} ${color.green(`v${"4.11.
|
|
445
|
+
`${title(commandName)} ${color.green(`v${"4.11.4"}`)} ${headline}`
|
|
446
446
|
);
|
|
447
447
|
}
|
|
448
448
|
if (usage) {
|
|
@@ -518,7 +518,7 @@ async function getContext(argv) {
|
|
|
518
518
|
prompt,
|
|
519
519
|
packageManager,
|
|
520
520
|
username: getName(),
|
|
521
|
-
version: getVersion(packageManager, "astro", "5.7.
|
|
521
|
+
version: getVersion(packageManager, "astro", "5.7.6"),
|
|
522
522
|
skipHouston,
|
|
523
523
|
fancy,
|
|
524
524
|
add,
|
|
@@ -628,7 +628,7 @@ async function astroAdd({
|
|
|
628
628
|
}
|
|
629
629
|
async function install({ packageManager, cwd }) {
|
|
630
630
|
if (packageManager === "yarn") await ensureYarnLock({ cwd });
|
|
631
|
-
return shell(packageManager, ["
|
|
631
|
+
return shell(packageManager, ["install"], { cwd, timeout: 9e4, stdio: "ignore" });
|
|
632
632
|
}
|
|
633
633
|
async function ensureYarnLock({ cwd }) {
|
|
634
634
|
const yarnLock = path.join(cwd, "yarn.lock");
|
package/dist/messages.d.ts
CHANGED
|
@@ -3,12 +3,6 @@ export declare function say(messages: string | string[], { clear, hat, tie }?: {
|
|
|
3
3
|
hat?: string | undefined;
|
|
4
4
|
tie?: string | undefined;
|
|
5
5
|
}): Promise<void>;
|
|
6
|
-
export declare function spinner(args: {
|
|
7
|
-
start: string;
|
|
8
|
-
end: string;
|
|
9
|
-
onError?: (error: any) => void;
|
|
10
|
-
while: (...args: any) => Promise<any>;
|
|
11
|
-
}): Promise<void>;
|
|
12
6
|
export declare const title: (text: string) => string;
|
|
13
7
|
export declare const getName: () => Promise<string>;
|
|
14
8
|
export declare const getVersion: (packageManager: string, packageName: string, fallback?: string) => Promise<string>;
|
|
@@ -17,7 +11,6 @@ export declare const banner: () => void;
|
|
|
17
11
|
export declare const bannerAbort: () => boolean;
|
|
18
12
|
export declare const info: (prefix: string, text: string) => Promise<void>;
|
|
19
13
|
export declare const error: (prefix: string, text: string) => Promise<void>;
|
|
20
|
-
export declare const typescriptByDefault: () => Promise<void>;
|
|
21
14
|
export declare const nextSteps: ({ projectDir, devCmd }: {
|
|
22
15
|
projectDir: string;
|
|
23
16
|
devCmd: string;
|
package/dist/shell.d.ts
CHANGED
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import type { StdioOptions } from 'node:child_process';
|
|
2
|
-
|
|
2
|
+
interface ExecaOptions {
|
|
3
3
|
cwd?: string | URL;
|
|
4
4
|
stdio?: StdioOptions;
|
|
5
5
|
timeout?: number;
|
|
6
6
|
}
|
|
7
|
-
|
|
7
|
+
interface Output {
|
|
8
8
|
stdout: string;
|
|
9
9
|
stderr: string;
|
|
10
10
|
exitCode: number;
|
|
11
11
|
}
|
|
12
12
|
export declare function shell(command: string, flags: string[], opts?: ExecaOptions): Promise<Output>;
|
|
13
|
+
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-astro",
|
|
3
|
-
"version": "4.11.
|
|
3
|
+
"version": "4.11.4",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"author": "withastro",
|
|
6
6
|
"license": "MIT",
|
|
@@ -30,7 +30,6 @@
|
|
|
30
30
|
},
|
|
31
31
|
"devDependencies": {
|
|
32
32
|
"arg": "^5.0.2",
|
|
33
|
-
"strip-json-comments": "^5.0.1",
|
|
34
33
|
"astro-scripts": "0.0.14"
|
|
35
34
|
},
|
|
36
35
|
"engines": {
|