Skip to content

Commit

Permalink
fix issue #241: no required properties in config file
Browse files Browse the repository at this point in the history
  • Loading branch information
Félix Horro Pita committed Dec 30, 2016
1 parent 99520c2 commit 8962947
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/infrastructure/configurationManager.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ module.exports = function ConfigurationManager() {

self.config.public = self.config.public || {};

self.config.public.registryFile = getRelativeFilePath(configFile.public.registryFile || './bowerRepositoryPublic.json');
self.config.public.registryFile = getRelativeFilePath(configFile.public && configFile.public.registryFile || './bowerRepositoryPublic.json');
self.config.public.registry = self.config.public.registry || 'https://bower.herokuapp.com/packages';

self.config.public.whitelist = self.config.public.whitelist || [];
Expand All @@ -51,6 +51,7 @@ module.exports = function ConfigurationManager() {
self.config.public.blacklist.enabled = !!self.config.public.blacklist.length;

self.config.repoCacheOptions = {};
self.config.repositoryCache = self.config.repositoryCache || {};

if(self.config.repositoryCache.svn && self.config.repositoryCache.svn.enabled) {
self.config.repoCacheOptions.svn = {
Expand Down

0 comments on commit 8962947

Please sign in to comment.