Skip to content

Commit

Permalink
fix: cache this.comnmandsDir
Browse files Browse the repository at this point in the history
  • Loading branch information
mdonnalley committed Nov 30, 2023
1 parent d2a1c29 commit e2e5436
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/config/plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -298,6 +298,7 @@ export class Plugin implements IPlugin {
}

private async getCommandsDir(): Promise<string | undefined> {
if (this.commandsDir) return this.commandsDir
this.commandsDir = await tsPath(this.root, this.pjson.oclif.commands, this)
return this.commandsDir
}
Expand Down

0 comments on commit e2e5436

Please sign in to comment.