Skip to main content

specs_from_package_json_sections

Function specs_from_package_json_sections 

Source
pub fn specs_from_package_json_sections(
    path: &Path,
    sections: &[&str],
) -> Result<Vec<PackageSpec>>
Expand description

Like specs_from_package_json, but read the named dependency sections (e.g. &["dependencies", "devDependencies"]). The first section to name a package wins; later duplicates are dropped. The webDependencies whitelist is not applied; that is specs_from_package_json’s browser-vend rule.