From bd0256816d53dd4b56618871741d56c7b3b1d7ca Mon Sep 17 00:00:00 2001 From: Jeff Dickey <216188+jdxcode@users.noreply.github.com> Date: Tue, 13 Feb 2018 12:45:28 -0800 Subject: [PATCH] fix: use pjson channel --- src/update.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/update.ts b/src/update.ts index 66a24282..44ecdae7 100644 --- a/src/update.ts +++ b/src/update.ts @@ -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 {