diff --git a/packages/core/core/src/config.ts b/packages/core/core/src/config.ts index 7ed9b3ed5..409ab1433 100644 --- a/packages/core/core/src/config.ts +++ b/packages/core/core/src/config.ts @@ -35,6 +35,18 @@ const DEFAULT_CONFIG_PATH = 'config/'; const embark5ChangesUrl = 'https://framework.embarklabs.io/docs/migrating_from_3.x.html#Updating-to-v5'; +export interface EmbarkConfig { + app?: any; + contracts: string[]; + config: string; + versions: { + solc: string; + }; + generationDir?: string; + plugins?: any; + buildDir?: string; +} + export class Config { env = 'default'; diff --git a/packages/core/core/src/index.ts b/packages/core/core/src/index.ts index ec2fd93f7..d3b8cba31 100644 --- a/packages/core/core/src/index.ts +++ b/packages/core/core/src/index.ts @@ -3,6 +3,7 @@ export type Callback = (err?: Error | null, val?: Tv) => void; export type Maybe = false | 0 | undefined | null | T; import { AbiItem } from "web3-utils"; +import { EmbarkConfig as _EmbarkConfig } from './config'; export interface Contract { abiDefinition: AbiItem[]; @@ -67,18 +68,9 @@ export interface EmbarkEvents { ): void; } -export interface EmbarkConfig { +export interface Configuration { contractsFiles: any[]; - embarkConfig: { - contracts: string[] | string; - config: { - contracts: string; - }; - versions: { - solc: string; - }; - generationDir: string; - }; + embarkConfig: _EmbarkConfig; blockchainConfig: { endpoint: string; accounts: any[]; @@ -115,7 +107,7 @@ export interface Embark { registerConsoleCommand: any; logger: Logger; fs: any; - config: EmbarkConfig; + config: Configuration; currentContext: string[]; registerActionForEvent( name: string, @@ -128,6 +120,7 @@ export { ProcessLauncher } from './processes/processLauncher'; export { ProcessWrapper } from './processes/processWrapper'; export { Config } from './config'; +export type EmbarkConfig = _EmbarkConfig; export { IPC } from './ipc'; import { EmbarkEmitter as Events } from './events'; export { Events };