From ad89bde46355fe207a18a4ebe211d25ad8400077 Mon Sep 17 00:00:00 2001 From: Phil Nash Date: Fri, 23 Apr 2021 02:23:41 +1000 Subject: [PATCH] fix: need to use the plugin name, not the plugin object (#121) --- src/base-commands/base-command.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/base-commands/base-command.js b/src/base-commands/base-command.js index 7ad3a6b5..c83c51eb 100644 --- a/src/base-commands/base-command.js +++ b/src/base-commands/base-command.js @@ -173,8 +173,8 @@ class BaseCommand extends Command { get pluginConfig() { if (!this._pluginConfig) { - const pluginName = getCommandPlugin(this); - this._pluginConfig = new PluginConfig(this.config.configDir, pluginName); + const plugin = getCommandPlugin(this); + this._pluginConfig = new PluginConfig(this.config.configDir, plugin.name); } return this._pluginConfig; }