UNPKG

1.69 kBTypeScriptView Raw
1import { ILabelDefinition } from "./release";
2import { ILogger } from "./utils/logger";
3declare type ConfigObject = any;
4/** Transform all types of label configuration into just 1 shape */
5export declare function normalizeLabel(label: Partial<ILabelDefinition>): Partial<ILabelDefinition>;
6/**
7 * Go through all the labels in a config and make them
8 * follow the same format.
9 */
10export declare function normalizeLabels(config: ConfigObject): ({
11 changelogTitle?: string | undefined;
12 color?: string | undefined;
13 description?: string | undefined;
14 releaseType?: "none" | import("./semver").default.major | import("./semver").default.minor | import("./semver").default.patch | "skip" | "release" | undefined;
15 overwrite?: boolean | undefined;
16} & {
17 name: string;
18})[];
19/** Load a user's configuration from the system and resolve any extended config */
20export default class Config {
21 /** A logger that uses log levels */
22 logger: ILogger;
23 /** Initialize the config loader */
24 constructor(logger: ILogger);
25 /**
26 * Load the .autorc from the file system, set up defaults, combine with CLI args
27 * load the extends property, load the plugins and start the git remote interface.
28 */
29 loadConfig(): Promise<any>;
30 /**
31 * Loads a config from a path, package name, or special `auto-config` pattern
32 *
33 * ex: auto-config-MY_CONFIG
34 * ex: @MY_CONFIG/auto-config
35 *
36 * @param extend - Path or name of config to find
37 */
38 loadExtendConfig(extend: string): Promise<any>;
39 /** Ensure a user's config is not using deprecated options. */
40 private checkDeprecated;
41}
42export {};
43//# sourceMappingURL=config.d.ts.map
\No newline at end of file