@storm-software/config-tools
Version:
⚡The Storm-Ops monorepo contains utility applications, tools, and various libraries to create modern and scalable web applications.
31 lines (28 loc) • 1.06 kB
TypeScript
import { StormWorkspaceConfig } from '@storm-software/config/types';
/**
* Get the config for the current Storm workspace
*
* @param workspaceRoot - The root directory of the workspace
* @param skipLogs - Skip writing logs to the console
* @returns The config for the current Storm workspace
*/
declare const getConfig: (workspaceRoot?: string, skipLogs?: boolean) => Promise<StormWorkspaceConfig>;
type GetWorkspaceConfigOptions = {
/**
* The root directory of the workspace
*/
workspaceRoot?: string;
/**
* A directory inside the monorepo to start searching from
*/
cwd?: string;
};
/**
* Get the config for the current Storm workspace
*
* @param skipLogs - Skip writing logs to the console
* @param options - Options for getting the workspace config
* @returns The config for the current Storm workspace
*/
declare const getWorkspaceConfig: (skipLogs?: boolean, options?: GetWorkspaceConfigOptions) => Promise<StormWorkspaceConfig>;
export { type GetWorkspaceConfigOptions, getConfig, getWorkspaceConfig };