bower_resolve
Advanced tools
Comparing version 0.1.2 to 0.1.3
@@ -73,5 +73,11 @@ var fs = require('fs'), | ||
// check config main script | ||
if (config.main && config.main.match(/\.js$/)) { | ||
mainFiles.unshift(config.main); | ||
if (!config.main) { | ||
return next(); | ||
} | ||
var mainList = (config.main.forEach) ? config.main : [config.main]; | ||
mainList.forEach(function (main) { | ||
if (main && main.match(/\.js$/)) { | ||
mainFiles.unshift(main); | ||
} | ||
}); | ||
next(); | ||
@@ -78,0 +84,0 @@ }, function (next) { |
{ | ||
"name": "bower_resolve", | ||
"description": "search bower javascript path.", | ||
"version": "0.1.2", | ||
"version": "0.1.3", | ||
"main": "index.js", | ||
@@ -6,0 +6,0 @@ "scripts": { |
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
5197
128