Skip to main content

parse_package_json_catalog_data

Function parse_package_json_catalog_data 

Source
pub fn parse_package_json_catalog_data(source: &str) -> PnpmCatalogData
Expand description

Parse Bun catalog sections from a root package.json file.

Bun accepts workspaces.catalog / workspaces.catalogs and the same catalog / catalogs keys at package.json top level. The nested workspaces form is preferred when both forms exist for the same section.