UNPKG

patch-pulse

Version:

Check for outdated npm dependencies

43 lines 1.67 kB
import { type PackageManager } from '../types'; export interface PatchPulseConfig { skip?: string[]; packageManager?: PackageManager; noUpdatePrompt?: boolean; } /** * Get the config from the config file and merged with the CLI config * @param argv - The command line arguments * @returns The merged configuration */ export declare function getConfig(): PatchPulseConfig; /** * Reads configuration from patchpulse.config.json file * @param cwd - The current working directory * @returns The configuration from the file */ export declare function readConfigFile(cwd?: string): PatchPulseConfig | null; /** * Parses CLI arguments for configuration options * @param args - The command line arguments * @returns The parsed configuration */ export declare function parseCliConfig(args: string[]): PatchPulseConfig; /** * Merges file config and CLI config, combining skip arrays from both sources * @param fileConfig - The configuration from the file * @param cliConfig - The configuration from the CLI * @returns The merged configuration */ export declare function mergeConfigs(fileConfig: PatchPulseConfig | null, cliConfig: PatchPulseConfig): PatchPulseConfig; /** * Checks if a package should be skipped based on configuration * @param packageName - The name of the package to check * @param config - The configuration to use * @param version - The version of the package to check * @returns True if the package should be skipped, false otherwise */ export declare function shouldSkipPackage({ packageName, config, }: { packageName: string; config: PatchPulseConfig | undefined; }): boolean; //# sourceMappingURL=config.d.ts.map