diff --git a/src/BundleManager.js b/src/BundleManager.js index ca6f354d..50bbc3a6 100644 --- a/src/BundleManager.js +++ b/src/BundleManager.js @@ -404,6 +404,11 @@ class BundleManager { } const commandName = path.basename(commandFile, path.extname(commandFile)); + + if (this.state.CommandManager.get(commandName)) { + Logger.warn(`Command '${commandName}' already exists and will be discarded`); + } + const command = this.createCommand(commandPath, commandName, bundle); this.state.CommandManager.add(command); }