Skip to main content

js_workspace_package_map

Function js_workspace_package_map 

Source
pub fn js_workspace_package_map(
    facts: &FactPaths<'_>,
    candidates: impl IntoIterator<Item = PathBuf>,
) -> HashMap<String, String>
Expand description

Each JavaScript workspace package’s resolved member folder, by the key a reader records for looking its name up (js_package_key), for each of candidates that is a workspace root. A name several members share maps to the member [resolve_workspace_package] finds. Read through facts without a memo, so a map built before and after a change compares what the resolver would find in each.