diff --git a/lib/scopedConfigReader.js b/lib/scopedConfigReader.js index 4cb5dad..624794a 100644 --- a/lib/scopedConfigReader.js +++ b/lib/scopedConfigReader.js @@ -4,6 +4,10 @@ * @returns {Object.} - values mapped by package name */ const getScopedValues = (propertyName, config) => { + if (!('scopes' in config)) { + return {}; + } + if (!(config.scope in config.scopes)) { throw new Error(`Unknown scope \`${ config.scope }\`. Known scopes are [${ Object.keys(config.scopes).join('./')