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

Commit

Permalink
fix: add valid flag to iconfig
Browse files Browse the repository at this point in the history
  • Loading branch information
jdx committed Apr 21, 2018
1 parent c709776 commit 80d4bf9
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 @@ -102,6 +102,7 @@ export interface IConfig {
userPJSON?: PJSON.User
plugins: Plugin.IPlugin[]
binPath?: string
valid: boolean
readonly commands: Command.Plugin[]
readonly topics: Topic[]
readonly commandIDs: string[]
Expand Down Expand Up @@ -161,6 +162,7 @@ export class Config implements IConfig {
userPJSON?: PJSON.User
plugins: Plugin.IPlugin[] = []
binPath?: string
valid!: boolean
protected warned = false

constructor(public options: Options) {}
Expand All @@ -173,6 +175,7 @@ export class Config implements IConfig {
this.name = this.pjson.name
this.version = this.pjson.version || '0.0.0'
this.channel = channelFromVersion(this.version)
this.valid = plugin.valid

this.arch = (os.arch() === 'ia32' ? 'x86' : os.arch() as any)
this.platform = os.platform() as any
Expand Down

0 comments on commit 80d4bf9

Please sign in to comment.