Skip to content

Commit

Permalink
fix: this.pjson.oclif.enableTheme was not being evaluated when OCLIF_…
Browse files Browse the repository at this point in the history
…ENABLE_THEME was unset
  • Loading branch information
AllanOricil committed Nov 7, 2023
1 parent a9e86e9 commit c7027d2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/config/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -341,7 +341,7 @@ export class Config implements IConfig {
if (this.platform === 'win32') this.dirname = this.dirname.replace('/', '\\')

const OCLIF_ENABLE_THEME = process.env.OCLIF_ENABLE_THEME === 'true'
this.enableTheme = OCLIF_ENABLE_THEME ?? this.pjson.oclif.enableTheme ?? false
this.enableTheme = OCLIF_ENABLE_THEME || this.pjson.oclif.enableTheme
if (this.enableTheme) {
this.theme = this.pjson.oclif?.theme ? parseTheme(this.pjson.oclif?.theme) : DEFAULT_THEME
}
Expand Down

0 comments on commit c7027d2

Please sign in to comment.