Extract the catalog name from a `catalog:` / `catalog: ` range, normalizing the default alias
(range: string)
| 187 | |
| 188 | /** Extract the catalog name from a `catalog:` / `catalog:<name>` range, normalizing the default alias */ |
| 189 | function catalogNameFromRange(range: string): string { |
| 190 | return normalizeCatalogName(range.slice('catalog:'.length).trim()); |
| 191 | } |
| 192 | |
| 193 | /** Resolve a specific dependency's catalog: reference */ |
| 194 | export function resolveCatalogDep(depName: string, range: string, catalogs: CatalogMap): string | null { |
no test coverage detected
searching dependent graphs…