workspace-tools
Version:
A collection of utilities that are useful in a git-controlled monorepo managed by one of these tools:
20 lines (19 loc) • 769 B
TypeScript
interface GetPackagesByFilesOptions {
/** Monorepo root directory */
root: string;
/** Files to search for */
files: string[];
/** Glob patterns to ignore */
ignoreGlobs?: string[];
/** If true, will return all packages if no matches are found for any file */
returnAllPackagesOnNoMatch?: boolean;
}
/**
* Given a list of files, finds all packages names that contain those files
*
* @returns Package names that have changed
*/
export declare function getPackagesByFiles(options: GetPackagesByFilesOptions): string[];
/** @deprecated Use object parameter signature instead */
export declare function getPackagesByFiles(root: string, files: string[], ignoreGlobs?: string[], returnAllPackagesOnNoMatch?: boolean): string[];
export {};