Interface Catalogs

Package version catalogs

interface Catalogs {
    default?: Catalog;
    named?: NamedCatalogs;
}

Properties

Properties

default?: Catalog

The default catalog (catalog:) if present.

Whether this is equivalent to catalogs.default depends on the package manager: they're the same in pnpm, but different in yarn. If there was a pnpm catalog named "default", it will be stored under this property instead (but getCatalogVersion supports either syntax).

Mapping from catalog name to catalog definition, if present.

(For pnpm, if there was a catalog named "default", it will be under Catalogs.default and omitted here.)