Comparing version 1.4.3 to 1.4.4
@@ -50,8 +50,14 @@ /* | ||
var findMainFiles = function (config, component, componentConfigFile) { | ||
var bowerJson = config.get('bower.json'); | ||
var overrides = config.get('overrides'); | ||
var filePaths = []; | ||
var file; | ||
if (bowerJson.overrides && bowerJson.overrides[component]) { | ||
componentConfigFile = _.merge(componentConfigFile, bowerJson.overrides[component]); | ||
if (overrides && overrides[component]) { | ||
if (overrides[component].dependencies) { | ||
componentConfigFile.dependencies = overrides[component].dependencies; | ||
} | ||
if (overrides[component].main) { | ||
componentConfigFile.main = overrides[component].main; | ||
} | ||
} | ||
@@ -58,0 +64,0 @@ |
{ | ||
"name": "wiredep", | ||
"main": "./wiredep.js", | ||
"version": "1.4.3", | ||
"version": "1.4.4", | ||
"description": "Wire Bower dependencies to your source code.", | ||
@@ -6,0 +6,0 @@ "repository": "taptapship/wiredep", |
@@ -77,2 +77,9 @@ # wiredep | ||
ignorePath: /string or regexp to ignore from the injected filepath/, | ||
overrides: { | ||
// see `Bower Overrides` section below. | ||
// | ||
// This inline object offers another way to define your overrides if | ||
// modifying your project's `bower.json` isn't an option. | ||
}, | ||
@@ -79,0 +86,0 @@ fileTypes: { |
@@ -138,2 +138,3 @@ /* | ||
('ignore-path', opts.ignorePath) | ||
('overrides', _.extend({}, config.get('bower.json').overrides, opts.overrides)) | ||
('src', []) | ||
@@ -140,0 +141,0 @@ ('stream', opts.stream ? opts.stream : {}) |
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
27145
643
191