Skip to content

Commit

Permalink
fix: use pjson channel
Browse files Browse the repository at this point in the history
  • Loading branch information
jdx committed Feb 13, 2018
1 parent 6c07281 commit bd02568
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/update.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,9 @@ export class Updater {
}

get channel(): string {
return this.config.scopedEnvVar('CHANNEL') || 'stable'
let pjson = this.config.pjson.oclif as any
if (pjson.channel) return pjson.channel
return 'stable'
}

get reexecBin(): string | undefined {
Expand Down

0 comments on commit bd02568

Please sign in to comment.