Skip to content

Commit 7a944da

Browse files
committed
fix: apply fixes for qa issues
1 parent c56b3ec commit 7a944da

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/commands/force/package/beta/version/displayancestry.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ export class PackageVersionDisplayAncestryCommand extends SfdxCommand {
2121
public static readonly varargs = false;
2222
public static readonly requiresDevhubUsername = true;
2323
public static readonly requiresProject = true;
24-
public static readonly require = true;
2524

2625
public static readonly flagsConfig: FlagsConfig = {
2726
// --json is configured automatically
@@ -58,7 +57,9 @@ export class PackageVersionDisplayAncestryCommand extends SfdxCommand {
5857
this.ux.log();
5958
}
6059
const treeProducer = await packageAncestry.getTreeProducer(!!this.flags.verbose);
61-
treeProducer.produce();
60+
if (!this.flags.json) {
61+
treeProducer.produce();
62+
}
6263
}
6364
return jsonProducer.produce() as PackageAncestryNodeData;
6465
}

0 commit comments

Comments
 (0)