pub type TraceDependencyOutput = DependencyTrace;Expand description
Concrete dependency trace output returned by typed programmatic runs.
Aliased Type§
pub struct TraceDependencyOutput {
pub package_name: String,
pub imported_by: Vec<PathBuf>,
pub type_only_imported_by: Vec<PathBuf>,
pub used_in_scripts: bool,
pub is_used: bool,
pub import_count: usize,
}Fields§
§package_name: StringThe dependency name being traced.
imported_by: Vec<PathBuf>Files that import this dependency.
type_only_imported_by: Vec<PathBuf>Files that import this dependency with type-only imports.
used_in_scripts: boolWhether the dependency is invoked from package.json scripts or CI configs.
is_used: boolWhether the dependency is used at all.
import_count: usizeTotal import count.