verify() — astro Function Reference
Architecture documentation for the verify() function in verify.ts from the astro codebase.
Entity Profile
Dependency Diagram
graph TD 72ce97da_518d_6810_433e_3fe04405324b["verify()"] bf354028_170b_aac5_1cb8_bcd8677afe9a["verify.ts"] 72ce97da_518d_6810_433e_3fe04405324b -->|defined in| bf354028_170b_aac5_1cb8_bcd8677afe9a 4c822c3c_0258_8e83_fa1d_dc2d8def1759["isOnline()"] 72ce97da_518d_6810_433e_3fe04405324b -->|calls| 4c822c3c_0258_8e83_fa1d_dc2d8def1759 499ccc6e_4075_3c7a_f08f_38b26a6c1fd1["verifyAstroProject()"] 72ce97da_518d_6810_433e_3fe04405324b -->|calls| 499ccc6e_4075_3c7a_f08f_38b26a6c1fd1 cbd6d1fc_ab83_8b16_92d7_39f57bf3357b["verifyVersions()"] 72ce97da_518d_6810_433e_3fe04405324b -->|calls| cbd6d1fc_ab83_8b16_92d7_39f57bf3357b style 72ce97da_518d_6810_433e_3fe04405324b fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/upgrade/src/actions/verify.ts lines 11–42
export async function verify(
ctx: Pick<Context, 'version' | 'packages' | 'cwd' | 'dryRun' | 'exit'>,
) {
const registry = await getRegistry();
if (!ctx.dryRun) {
const online = await isOnline(registry);
if (!online) {
bannerAbort();
newline();
error('error', `Unable to connect to the internet.`);
ctx.exit(1);
}
}
const isAstroProject = await verifyAstroProject(ctx);
if (!isAstroProject) {
bannerAbort();
newline();
error('error', `Astro installation not found in the current directory.`);
ctx.exit(1);
}
const ok = await verifyVersions(ctx, registry);
if (!ok) {
bannerAbort();
newline();
error('error', `Version ${color.reset(ctx.version)} ${color.dim('could not be found!')}`);
await info('check', 'https://github.com/withastro/astro/releases');
ctx.exit(1);
}
}
Domain
Subdomains
Defined In
Source
Frequently Asked Questions
What does verify() do?
verify() is a function in the astro codebase, defined in packages/upgrade/src/actions/verify.ts.
Where is verify() defined?
verify() is defined in packages/upgrade/src/actions/verify.ts at line 11.
What does verify() call?
verify() calls 3 function(s): isOnline, verifyAstroProject, verifyVersions.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free