Skip to main content

dependency_owner

Function dependency_owner 

Source
fn dependency_owner<L>(
    paths: &ProjectPathsConfig<L>,
    file: &Path,
) -> Option<PathBuf>
Expand description

Returns the innermost dependency directory that contains file, relative to the root.

Nested dependencies live in the library directories their parent configures. An npm scope such as node_modules/@scope/ holds packages, so its owner is the package. Other @ directories, such as Soldeer’s dependencies/@name-version/, are packages themselves.