MCPcopy Create free account
hub / github.com/craftreactnative/ui / ensureComponentsDownloaded

Function ensureComponentsDownloaded

cli/src/utils/github-downloader.ts:229–241  ·  view source on GitHub ↗
(
  options: DownloadOptions = {}
)

Source from the content-addressed store, hash-verified

227 * Ensures components are downloaded and returns the path
228 */
229export async function ensureComponentsDownloaded(
230 options: DownloadOptions = {}
231): Promise<string> {
232 try {
233 return await downloadFromGitHub(options);
234 } catch (error) {
235 throw new Error(
236 `Failed to download components from GitHub: ${
237 error instanceof Error ? error.message : "Unknown error"
238 }`
239 );
240 }
241}

Callers 1

ensureSourcePathsFunction · 0.90

Calls 1

downloadFromGitHubFunction · 0.85

Tested by

no test coverage detected