(
options: DownloadOptions = {}
)
| 227 | * Ensures components are downloaded and returns the path |
| 228 | */ |
| 229 | export 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 | } |
no test coverage detected