File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
src/commands/force/package/beta/version Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -21,7 +21,6 @@ export class PackageVersionDisplayAncestryCommand extends SfdxCommand {
21
21
public static readonly varargs = false ;
22
22
public static readonly requiresDevhubUsername = true ;
23
23
public static readonly requiresProject = true ;
24
- public static readonly require = true ;
25
24
26
25
public static readonly flagsConfig : FlagsConfig = {
27
26
// --json is configured automatically
@@ -58,7 +57,9 @@ export class PackageVersionDisplayAncestryCommand extends SfdxCommand {
58
57
this . ux . log ( ) ;
59
58
}
60
59
const treeProducer = await packageAncestry . getTreeProducer ( ! ! this . flags . verbose ) ;
61
- treeProducer . produce ( ) ;
60
+ if ( ! this . flags . json ) {
61
+ treeProducer . produce ( ) ;
62
+ }
62
63
}
63
64
return jsonProducer . produce ( ) as PackageAncestryNodeData ;
64
65
}
You can’t perform that action at this time.
0 commit comments