@hyperse/dependency-sync
Version:
A comprehensive Node.js utility for managing dependencies in monorepo environments, specifically designed for Hyperse plugin ecosystems.
19 lines (18 loc) • 658 B
TypeScript
type VersionMap = Map<string, string[]>;
/**
* Check for conflicting packages in the node_modules directory.
* @example
* ```ts
* const files = await checkConflicts([
* '@vendure/*',
* '@hyperse-hub/*',
* '@nestjs/common',
* ]);
* ```
* @param nodeModulesPath - Path to node_modules directory
* @param pkgPatterns - The modules to check for conflicts.
* @param ignorePackages - Packages to ignore when checking for conflicts
* @returns Map of package names to their conflicting versions
*/
export declare const checkConflicts: (nodeModulesPath: string, pkgPatterns: string[], ignorePackages?: string[]) => Promise<VersionMap>;
export {};