MCPcopy Create free account
hub / github.com/dmno-dev/bumpy / normalizeCatalogName

Function normalizeCatalogName

packages/bumpy/src/utils/package-manager.ts:99–101  ·  view source on GitHub ↗

* 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)

Source from the content-addressed store, hash-verified

97 * the user wrote.
98 */
99function 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

Callers 2

addNamedFunction · 0.85
catalogNameFromRangeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…