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

Commit

Permalink
fix: do not default registry
Browse files Browse the repository at this point in the history
  • Loading branch information
jdx committed May 26, 2018
1 parent 4a88590 commit e29ceef
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ export interface IConfig {
/**
* npm registry to use for installing plugins
*/
npmRegistry: string
npmRegistry?: string
userPJSON?: PJSON.User
plugins: Plugin.IPlugin[]
binPath?: string
Expand Down Expand Up @@ -157,7 +157,7 @@ export class Config implements IConfig {
windows!: boolean
userAgent!: string
debug: number = 0
npmRegistry!: string
npmRegistry?: string
pjson!: PJSON.CLI
userPJSON?: PJSON.User
plugins: Plugin.IPlugin[] = []
Expand Down Expand Up @@ -195,7 +195,7 @@ export class Config implements IConfig {
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'
this.npmRegistry = this.scopedEnvVar('NPM_REGISTRY') || this.pjson.oclif.npmRegistry

this.pjson.oclif.update = this.pjson.oclif.update || {}
this.pjson.oclif.update.node = this.pjson.oclif.update.node || {}
Expand Down

0 comments on commit e29ceef

Please sign in to comment.