dependency-owners
Version:
Determine ownership of dependencies in a project
29 lines (28 loc) • 860 B
TypeScript
import { type DependencyLoader } from './utils/loader.ts';
/**
* Options for the dependency owners lookup.
*/
export interface DependencyOwnersOptions {
/**
* Path to the dependency file.
*/
dependencyFile?: string;
/**
* Path to the configuration file.
*/
configFile?: string;
/**
* List of dependencies to check.
*/
dependencies?: string[];
/**
* Loader to use for loading dependencies.
*/
loader?: string | DependencyLoader;
}
/**
* Get the owners of the specified dependencies.
* @param {Options} options - The options for the dependency owners lookup.
* @returns {Promise<Record<string, string[]>>} A mapping of dependency owners for the specified dependencies.
*/
export declare function dependencyOwners(options?: DependencyOwnersOptions): Promise<Record<string, string[]>>;