UNPKG

@scaleway/changesets-renovate

Version:

Automatically create changesets for Renovate and pnpm catalogs

30 lines (29 loc) 1.47 kB
export declare function shouldIgnorePackage(packageName: string, ignoredPackages: string[]): boolean; export declare function getChangesetIgnoredPackages(): Promise<string[]>; export declare function getPackagesNames(files: string[]): Promise<string[]>; /** * Load catalog from a YAML file * @param filePath Path to the YAML file containing the catalog * @returns Catalog object or empty object if not found */ export declare function loadCatalogFromFile(filePath: string): Promise<Record<string, string>>; /** * Load catalog from pnpm workspace YAML content * @param content Content of the pnpm-workspace.yaml file * @returns Catalog object or empty object if not found */ export declare function loadCatalogFromWorkspaceContent(content: string): Record<string, string>; /** * Find changed dependencies between two catalogs * @param oldCatalog The previous catalog * @param newCatalog The current catalog * @returns Array of package names that have changed */ export declare function findChangedDependencies(oldCatalog: Record<string, string>, newCatalog: Record<string, string>): string[]; /** * Find packages affected by dependency changes * @param changedDeps Array of changed dependency names * @param packageJsonGlob Glob pattern to find package.json files * @returns Set of package names that are affected by the changes */ export declare function findAffectedPackages(changedDeps: string[], packageJsonGlob?: string): Promise<Set<string>>;