Skip to content
This repository has been archived by the owner on Aug 22, 2023. It is now read-only.

Commit

Permalink
fix: added binPath
Browse files Browse the repository at this point in the history
  • Loading branch information
jdx committed Apr 9, 2018
1 parent 3e46124 commit f1d5a7f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ export interface IConfig {
npmRegistry: string
userPJSON?: PJSON.User
plugins: Plugin.IPlugin[]
binPath?: string
readonly commands: Command.Plugin[]
readonly topics: Topic[]
readonly commandIDs: string[]
Expand Down Expand Up @@ -139,6 +140,7 @@ export class Config implements IConfig {
pjson!: PJSON.CLI
userPJSON?: PJSON.User
plugins: Plugin.IPlugin[] = []
binPath?: string
protected warned = false

constructor(public options: Options) {}
Expand Down Expand Up @@ -167,6 +169,7 @@ export class Config implements IConfig {
this.configDir = this.scopedEnvVar('CONFIG_DIR') || this.dir('config')
this.dataDir = this.scopedEnvVar('DATA_DIR') || this.dir('data')
this.errlog = path.join(this.cacheDir, 'error.log')
this.binPath = this.scopedEnvVar('BINPATH')

this.npmRegistry = this.scopedEnvVar('NPM_REGISTRY') || this.pjson.oclif.npmRegistry || 'https://registry.yarnpkg.com'

Expand Down

0 comments on commit f1d5a7f

Please sign in to comment.