Skip to content

Commit

Permalink
fix: need to use the plugin name, not the plugin object (twilio#121)
Browse files Browse the repository at this point in the history
  • Loading branch information
philnash committed Apr 22, 2021
1 parent 81f868b commit ad89bde
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/base-commands/base-command.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit ad89bde

Please sign in to comment.