UNPKG

@hyperse/dependency-sync

Version:

A comprehensive Node.js utility for managing dependencies in monorepo environments, specifically designed for Hyperse plugin ecosystems.

22 lines (21 loc) 1.29 kB
import type { Package } from '@manypkg/get-packages'; export interface SyncDependenciesOptions { excludedPackages?: (pkg: Package) => boolean; checkMissing?: boolean; checkUnused?: boolean; maxRangeCanbeSyncPeerDependencies?: Record<string, string>; dependenciesReferPeepDependencies?: Record<string, string[]>; ignoredCheckList?: Array<string | RegExp>; } /** * 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.checkUnused - Whether to check for unused package declarations (default: false) * @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>;