Skip to content

Commit

Permalink
fix: remove top-level aliases from snapshot
Browse files Browse the repository at this point in the history
  • Loading branch information
iowillhoit committed Nov 21, 2022
1 parent 4966dc2 commit 1ccb8a4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/snapshot-command.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ export abstract class SnapshotCommand extends Command {
const commands = this.config.commands
// Ignore dev plugins
.filter(command => !devPlugins.includes(command.pluginName ?? ''))
// remove aliases that reference themselves
.filter(command => !command.aliases.includes(command.id))
return _.sortBy(commands, 'id')
}

Expand Down

0 comments on commit 1ccb8a4

Please sign in to comment.