index.ts — astro Source File
Architecture documentation for index.ts, a typescript file in the astro codebase. 3 imports, 0 dependents.
Entity Profile
Dependency Diagram
graph LR e03d202e_cca0_0a97_d015_be57061791db["index.ts"] 8db17b08_b9e5_db7e_cd39_46be76c6d5ad["../core/messages.js"] e03d202e_cca0_0a97_d015_be57061791db --> 8db17b08_b9e5_db7e_cd39_46be76c6d5ad 118daa85_78ea_83c0_84f6_bcd529c428e0["./sync/index.js"] e03d202e_cca0_0a97_d015_be57061791db --> 118daa85_78ea_83c0_84f6_bcd529c428e0 9323e55c_9236_cd3d_d0b3_e20df52a4e84["../flags.js"] e03d202e_cca0_0a97_d015_be57061791db --> 9323e55c_9236_cd3d_d0b3_e20df52a4e84 style e03d202e_cca0_0a97_d015_be57061791db fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
import { printHelp } from '../../core/messages.js';
import _sync from '../../core/sync/index.js';
import { type Flags, flagsToAstroInlineConfig } from '../flags.js';
interface SyncOptions {
flags: Flags;
}
export async function sync({ flags }: SyncOptions) {
if (flags?.help || flags?.h) {
printHelp({
commandName: 'astro sync',
usage: '[...flags]',
tables: {
Flags: [
['--force', 'Clear the content layer cache, forcing a full rebuild.'],
['--help (-h)', 'See all available flags.'],
],
},
description: `Generates TypeScript types for all Astro modules.`,
});
return 0;
}
await _sync(flagsToAstroInlineConfig(flags), { telemetry: true });
}
Domain
Subdomains
Functions
Types
Dependencies
- ../core/messages.js
- ../flags.js
- ./sync/index.js
Source
Frequently Asked Questions
What does index.ts do?
index.ts is a source file in the astro codebase, written in typescript. It belongs to the CoreAstro domain, RenderingEngine subdomain.
What functions are defined in index.ts?
index.ts defines 1 function(s): sync.
What does index.ts depend on?
index.ts imports 3 module(s): ../core/messages.js, ../flags.js, ./sync/index.js.
Where is index.ts in the architecture?
index.ts is located at packages/astro/src/cli/sync/index.ts (domain: CoreAstro, subdomain: RenderingEngine, directory: packages/astro/src/cli/sync).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free