post-merge
Version:
A reusable library for handling post-merge operations including version bumping and git tagging
34 lines • 1.34 kB
TypeScript
import { PostMergeConfigFile, PostMergeConfig } from './types';
/**
* Default config file name
*/
export declare const CONFIG_FILE_NAME = "post-merge-config.json";
/**
* Checks if the config file exists in the current directory
*/
export declare function configFileExists(configPath?: string): boolean;
/**
* Reads and parses the config file
*/
export declare function readConfigFile(configPath?: string): PostMergeConfigFile;
/**
* Validates the config file structure
*/
export declare function validateConfigFile(config: any): void;
/**
* Resolves access token from environment using the specified property name
*/
export declare function resolveAccessToken(accessTokenProp?: string, fallbackToken?: string): string;
/**
* Resolves nodejs mirror URL from environment using the specified property name
*/
export declare function resolveNodejsMirror(nodejsImageUrl?: string): string | undefined;
/**
* Converts config file format to HotfixConfig format
*/
export declare function convertFileConfigToHotfixConfig(fileConfig: PostMergeConfigFile): Partial<PostMergeConfig>;
/**
* Loads configuration with proper precedence: defaults < config file < CLI args
*/
export declare function loadConfiguration(cliConfig?: Partial<PostMergeConfig>, configPath?: string): PostMergeConfig;
//# sourceMappingURL=config-utils.d.ts.map