Skip to content

Commit

Permalink
fix: set prioritized command to alias (#633)
Browse files Browse the repository at this point in the history
  • Loading branch information
mdonnalley authored Feb 17, 2023
1 parent 0130595 commit 7d30350
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/config/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -633,7 +633,7 @@ export class Config implements IConfig {
for (const alias of command.aliases ?? []) {
if (this._commands.has(alias)) {
const prioritizedCommand = this.determinePriority([this._commands.get(alias)!, command])
this._commands.set(prioritizedCommand.id, {...prioritizedCommand, id: alias})
this._commands.set(alias, {...prioritizedCommand, id: alias})
} else {
this._commands.set(alias, {...command, id: alias})
}
Expand Down

0 comments on commit 7d30350

Please sign in to comment.