From 3e361747ec1bd735835213498a529cd206f1b6b3 Mon Sep 17 00:00:00 2001 From: mshanemc Date: Wed, 8 Feb 2023 09:37:49 -0600 Subject: [PATCH] fix: deduplicate json output --- src/commands/commands.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/commands/commands.ts b/src/commands/commands.ts index b48f4dc8..395c46b9 100644 --- a/src/commands/commands.ts +++ b/src/commands/commands.ts @@ -57,7 +57,7 @@ export default class Commands extends Command { // If Command classes have circular references, don't break the commands command. return this.removeCycles(obj) })) - return formatted + return _.uniqBy(formatted, 'id') } if (flags.tree) {