@nomiclabs/buidler
Version:
Buidler is an extensible developer tool that helps smart contract developers increase productivity by reliably bringing together the tools they want.
26 lines • 1.29 kB
TypeScript
import { BuidlerConfig, ConfigExtender, ProjectPaths, ResolvedBuidlerConfig } from "../../../types";
/**
* This functions resolves the buidler config by merging the user provided config
* and the buidler default config.
*
* @param userConfigPath the user config filepath
* @param defaultConfig the buidler's default config object
* @param userConfig the user config object
* @param configExtenders An array of ConfigExtenders
*
* @returns the resolved config
*/
export declare function resolveConfig(userConfigPath: string, defaultConfig: BuidlerConfig, userConfig: BuidlerConfig, configExtenders: ConfigExtender[]): ResolvedBuidlerConfig;
/**
* This function resolves the ProjectPaths object from the user-provided config
* and its path. The logic of this is not obvious and should well be document.
* The good thing is that most users will never use this.
*
* Explanation:
* - paths.configFile is not overridable
* - If a path is absolute it is used "as is".
* - If the root path is relative, it's resolved from paths.configFile's dir.
* - If any other path is relative, it's resolved from paths.root.
*/
export declare function resolveProjectPaths(userConfigPath: string, userPaths?: any): ProjectPaths;
//# sourceMappingURL=config-resolution.d.ts.map