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

Commit

Permalink
fix: grab channel from version
Browse files Browse the repository at this point in the history
  • Loading branch information
jdx committed Apr 9, 2018
1 parent f5946da commit 7bba041
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,8 @@ export class Config implements IConfig {
this.pjson = plugin.pjson
this.name = this.pjson.name
this.version = this.pjson.version
this.channel = this.pjson.channel
const [, versionSuffix] = this.version.split('-')
this.channel = versionSuffix.split('.')[0] || 'stable'

this.arch = (os.arch() === 'ia32' ? 'x86' : os.arch() as any)
this.platform = os.platform() as any
Expand Down
1 change: 0 additions & 1 deletion src/pjson.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ export namespace PJSON {
export interface Plugin extends PJSON {
name: string
version: string
channel?: string
oclif: PJSON['oclif'] & {
schema?: number
title?: string
Expand Down

0 comments on commit 7bba041

Please sign in to comment.