UNPKG

@scaleway/changesets-renovate

Version:

Automatically create changesets for Renovate and pnpm catalogs

25 lines (24 loc) 1.4 kB
/** * Load catalog from pnpm workspace file at specific git revision * @param revision Git revision to load file from (default: HEAD) * @param filePath Path to the pnpm workspace file (default: pnpm-workspace.yaml) * @returns Catalog object or empty object if not found */ export declare function loadCatalogFromGit(revision?: string, filePath?: string): Promise<Record<string, string>>; /** * Find changed dependencies between two git revisions of pnpm workspace * @param oldRevision The previous git revision * @param newRevision The current git revision (default: HEAD) * @param filePath Path to the pnpm workspace file (default: pnpm-workspace.yaml) * @returns Array of package names that have changed */ export declare function findChangedDependenciesFromGit(oldRevision: string, newRevision?: string, filePath?: string): Promise<Map<string, string>>; export declare function getBumpsFromGit(files: string[]): Promise<Map<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>>; export declare function handleChangesetFile(fileName: string): Promise<void>;