File tree Expand file tree Collapse file tree 1 file changed +5
-6
lines changed
src/commands/commandreference Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -101,7 +101,7 @@ export default class CommandReferenceGenerate extends SfCommand {
101101 Ditamap . plugins ,
102102 flags . hidden ,
103103 await this . loadTopicMetadata ( ) ,
104- await this . loadCliMeta ( )
104+ this . loadCliMeta ( )
105105 ) ;
106106
107107 events . on ( 'topic' , ( { topic } ) => {
@@ -195,12 +195,11 @@ export default class CommandReferenceGenerate extends SfCommand {
195195 return command . load . constructor . name === 'AsyncFunction' ? await command . load ( ) : command . load ( ) ;
196196 }
197197
198- private async loadCliMeta ( ) : Promise < JsonMap > {
199- const packageJson = await fs . readJson ( path . join ( process . cwd ( ) , 'package.json' ) ) ;
198+ private loadCliMeta ( ) : JsonMap {
200199 return {
201- binary : getString ( packageJson , ' oclif.bin' , 'sfdx' ) ,
202- topicSeparator : getString ( packageJson , ' oclif.topicSeparator' , ':' ) ,
203- state : getString ( packageJson , ' oclif.state' , null ) ,
200+ binary : this . config . pjson . oclif . bin || 'sfdx' ,
201+ topicSeparator : this . config . pjson . oclif . topicSeparator ,
202+ state : this . config . pjson . oclif . state ,
204203 } ;
205204 }
206205}
You can’t perform that action at this time.
0 commit comments