fabricator-assemble
Advanced tools
Comparing version 1.1.8 to 1.1.9
@@ -273,5 +273,11 @@ // modules | ||
// build a glob for identifying directories | ||
options.materials = (typeof options.materials === 'string') ? [options.materials] : options.materials; | ||
var dirsGlob = options.materials.map(function (pattern) { | ||
return path.dirname(pattern) + '/*/'; | ||
}); | ||
// get all directories | ||
// do a new glob; trailing slash matches only dirs | ||
var dirs = globby.sync(options.materials + '/').map(function (dir) { | ||
var dirs = globby.sync(dirsGlob).map(function (dir) { | ||
return path.normalize(dir).split(path.sep).slice(-2, -1)[0]; | ||
@@ -278,0 +284,0 @@ }); |
{ | ||
"name": "fabricator-assemble", | ||
"version": "1.1.8", | ||
"version": "1.1.9", | ||
"description": "The assembly engine behind Fabricator", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
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
34014
610