workspace-tools
Version:
A collection of utilities that are useful in a git-controlled monorepo managed by one of these tools:
12 lines (11 loc) • 499 B
TypeScript
import type { PackageInfos } from "../types/PackageInfo";
import type { PackageGraph } from "../types/PackageGraph";
export interface PackageGraphFilter {
namePatterns: string[];
includeDependencies?: boolean;
includeDependents?: boolean;
withDevDependencies?: boolean;
withPeerDependencies?: boolean;
withOptionalDependencies?: boolean;
}
export declare function createPackageGraph(packages: PackageInfos, filters?: PackageGraphFilter[] | PackageGraphFilter): PackageGraph;