From 937f136c627f8bac4e1c4dde0fac667ae8f86c84 Mon Sep 17 00:00:00 2001 From: Jeff Dickey <216188+jdxcode@users.noreply.github.com> Date: Fri, 19 Jan 2018 08:54:55 -0800 Subject: [PATCH] fix: do not require engine --- src/config.ts | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/src/config.ts b/src/config.ts index d04b4c9f..9d842645 100644 --- a/src/config.ts +++ b/src/config.ts @@ -246,8 +246,8 @@ export class PluginConfig extends ConfigBase implements IPluginConfig { } export class CLIConfig extends ConfigBase implements ICLIConfig { - static async create({engine, name, root = __dirname}: ConfigOptions & {engine: IEngine}) { - const config = new this(engine) + static async create({name, root = __dirname}: ConfigOptions) { + const config = new this() await config.load({name, root}) return config } @@ -257,11 +257,6 @@ export class CLIConfig extends ConfigBase implements ICLIConfig { engine: IEngine npmRegistry: string - constructor(engine: IEngine) { - super() - this.engine = engine - } - async load({root, name}: {root: string, name?: string}) { await super.load({root, name}) this.npmRegistry = this.scopedEnvVar('NPM_REGISTRY') || this.pjson.dxcli.npmRegistry || 'https://registry.yarnpkg.com'