Home / Function/ convertIntegrationsToInstallSpecifiers() — astro Function Reference

convertIntegrationsToInstallSpecifiers() — astro Function Reference

Architecture documentation for the convertIntegrationsToInstallSpecifiers() function in index.ts from the astro codebase.

Entity Profile

Dependency Diagram

graph TD
  a25a4899_7ef7_478a_55fd_a5648adaa725["convertIntegrationsToInstallSpecifiers()"]
  9151bb3d_ee1e_da42_752a_45a9db1dd918["index.ts"]
  a25a4899_7ef7_478a_55fd_a5648adaa725 -->|defined in| 9151bb3d_ee1e_da42_752a_45a9db1dd918
  d8c50440_84a7_3639_a0ff_bb413e95ec8d["tryToInstallIntegrations()"]
  d8c50440_84a7_3639_a0ff_bb413e95ec8d -->|calls| a25a4899_7ef7_478a_55fd_a5648adaa725
  445f1ba1_08d9_b5b7_5f3f_eabbaf6609b7["resolveRangeToInstallSpecifier()"]
  a25a4899_7ef7_478a_55fd_a5648adaa725 -->|calls| 445f1ba1_08d9_b5b7_5f3f_eabbaf6609b7
  style a25a4899_7ef7_478a_55fd_a5648adaa725 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/astro/src/cli/add/index.ts lines 781–793

async function convertIntegrationsToInstallSpecifiers(
	integrations: IntegrationInfo[],
): Promise<string[]> {
	const ranges: Record<string, string> = {};
	for (let { dependencies } of integrations) {
		for (const [name, range] of dependencies) {
			ranges[name] = range;
		}
	}
	return Promise.all(
		Object.entries(ranges).map(([name, range]) => resolveRangeToInstallSpecifier(name, range)),
	);
}

Domain

Subdomains

Frequently Asked Questions

What does convertIntegrationsToInstallSpecifiers() do?
convertIntegrationsToInstallSpecifiers() is a function in the astro codebase, defined in packages/astro/src/cli/add/index.ts.
Where is convertIntegrationsToInstallSpecifiers() defined?
convertIntegrationsToInstallSpecifiers() is defined in packages/astro/src/cli/add/index.ts at line 781.
What does convertIntegrationsToInstallSpecifiers() call?
convertIntegrationsToInstallSpecifiers() calls 1 function(s): resolveRangeToInstallSpecifier.
What calls convertIntegrationsToInstallSpecifiers()?
convertIntegrationsToInstallSpecifiers() is called by 1 function(s): tryToInstallIntegrations.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free