UNPKG

@stackbit/sdk

Version:
17 lines 1.01 kB
import { ConfigLoadError, StackbitConfigNotFoundError } from './config-errors'; import { Config } from './config-types'; export type LoadStaticStackbitConfigOptions = { dirPath: string; secondaryDirPath?: string; logger?: any; }; export type StaticConfig = Pick<Config, 'stackbitVersion' | 'nodeVersion' | 'ssgName' | 'ssgVersion' | 'cmsName' | 'postGitCloneCommand' | 'preInstallCommand' | 'postInstallCommand' | 'installCommand' | 'import' | 'buildCommand' | 'publishDir' | 'dirPath' | 'filePath'> & { hasContentSources?: boolean; }; export type LoadStaticConfigResult = { config: StaticConfig | null; errors: (ConfigLoadError | StackbitConfigNotFoundError)[]; }; export declare function loadStaticConfig({ dirPath, secondaryDirPath, logger }: LoadStaticStackbitConfigOptions): Promise<LoadStaticConfigResult>; export declare function parseInlineProperty(jsConfigString: string, propertyName: string): string | boolean | number | null; //# sourceMappingURL=config-loader-static.d.ts.map