@storm-software/config-tools
Version:
A package containing various utilities to support custom workspace configurations and environment management for Storm Software projects, including configuration file handling, environment variable management, and logging utilities.
20 lines (17 loc) • 895 B
TypeScript
import { StormWorkspaceConfigInput } from '@storm-software/config';
import { LoadConfigOptions, ResolvedConfig } from 'c12';
/**
* Get the config file for the current Storm workspace
*
* @param fileName - The name of the config file to search for
* @param filePath - The path to search for the config file in
* @returns The config file for the current Storm workspace
*/
declare const getConfigFileByName: (fileName: string, filePath?: string, options?: LoadConfigOptions<Partial<StormWorkspaceConfigInput>>) => Promise<ResolvedConfig<Partial<StormWorkspaceConfigInput>>>;
/**
* Get the config file for the current Storm workspace
*
* @returns The config file for the current Storm workspace
*/
declare const getConfigFile: (filePath?: string, additionalFileNames?: string[]) => Promise<Partial<StormWorkspaceConfigInput> | undefined>;
export { getConfigFile, getConfigFileByName };