Skip to content

relizy / readCatalogEntries

Function: readCatalogEntries() ​

readCatalogEntries(file, content): CatalogEntries

Defined in: src/core/catalogs.ts:56

The catalog entries declared by a catalog file, empty when the file is missing or invalid

Parameters ​

file ​

"pnpm-workspace.yaml" | ".yarnrc.yml" | "package.json"

content ​

string | undefined

Returns ​

CatalogEntries

Released under the MIT License.