From 1ccb8a463d4fc1a0101bbc0f744590397216bb4a Mon Sep 17 00:00:00 2001 From: Eric Willhoit Date: Mon, 21 Nov 2022 11:19:38 -0600 Subject: [PATCH] fix: remove top-level aliases from snapshot --- src/snapshot-command.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/snapshot-command.ts b/src/snapshot-command.ts index 6e3c5ee0..df87f0d4 100644 --- a/src/snapshot-command.ts +++ b/src/snapshot-command.ts @@ -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') }