@hyperse/dependency-sync
Version:
A comprehensive Node.js utility for managing dependencies in monorepo environments, specifically designed for Hyperse plugin ecosystems.
20 lines (19 loc) • 1.15 kB
TypeScript
import type { Package } from '@manypkg/get-packages';
export interface SyncDependenciesOptions {
excludedPackages?: (pkg: Package) => boolean;
checkMissing?: boolean;
maxRangeCanbeSyncPeerDependencies?: Record<string, string>;
dependenciesReferPeepDependencies?: Record<string, string[]>;
ignoredCheckList?: string[];
}
/**
* Sync dependencies for all packages in the workspace
* @param workspaceRoot - The root directory of the workspace (defaults to process.cwd())
* @param options - Configuration options
* @param options.excludedPackages - Whether to exclude admin-ui packages (default: true)
* @param options.checkMissing - Whether to check for missing package declarations (default: true)
* @param options.maxRangeCanbeSyncPeerDependencies - Map of peer dependencies and their versions
* @param options.dependenciesReferPeepDependencies - Map of dependencies that reference peer dependencies
* @param options.ignoredCheckList - List of packages to ignore when checking for missing declarations
*/
export declare function syncDependencies(workspaceRoot?: string, options?: SyncDependenciesOptions): Promise<void>;