* Normalize a catalog name to its canonical form. * pnpm/bun treat "default" and the unnamed top-level catalog interchangeably, * so we store and look up the default catalog under "" regardless of which alias * the user wrote.
(name: string)
| 97 | * the user wrote. |
| 98 | */ |
| 99 | function normalizeCatalogName(name: string): string { |
| 100 | return name === 'default' ? '' : name; |
| 101 | } |
| 102 | |
| 103 | /** |
| 104 | * Parse catalog definitions from the raw contents of a workspace YAML file and |
no outgoing calls
no test coverage detected
searching dependent graphs…