Comparing version 1.6.1 to 1.6.2
@@ -50,16 +50,5 @@ /* | ||
var findMainFiles = function (config, component, componentConfigFile) { | ||
var overrides = config.get('overrides'); | ||
var filePaths = []; | ||
var file; | ||
if (overrides && overrides[component]) { | ||
if (overrides[component].dependencies) { | ||
componentConfigFile.dependencies = overrides[component].dependencies; | ||
} | ||
if (overrides[component].main) { | ||
componentConfigFile.main = overrides[component].main; | ||
} | ||
} | ||
if (_.isString(componentConfigFile.main)) { | ||
@@ -111,2 +100,14 @@ // start by looking for what every component should have: config.main | ||
var overrides = config.get('overrides'); | ||
if (overrides && overrides[component]) { | ||
if (overrides[component].dependencies) { | ||
componentConfigFile.dependencies = overrides[component].dependencies; | ||
} | ||
if (overrides[component].main) { | ||
componentConfigFile.main = overrides[component].main; | ||
} | ||
} | ||
var mains = findMainFiles(config, component, componentConfigFile); | ||
@@ -113,0 +114,0 @@ var fileTypes = _.chain(mains).map(path.extname).unique().value(); |
{ | ||
"name": "wiredep", | ||
"version": "1.6.1", | ||
"version": "1.6.2", | ||
"main": "./wiredep.js", | ||
@@ -5,0 +5,0 @@ "bin": { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
32187