fabricator-assemble
Advanced tools
Comparing version 1.0.4 to 1.0.5
12
index.js
@@ -174,3 +174,3 @@ // modules | ||
var dirs = files.map(function (file) { | ||
return path.dirname(file).split(path.sep).pop(); | ||
return path.normalize(path.dirname(file)).split(path.sep).pop(); | ||
}); | ||
@@ -182,4 +182,4 @@ | ||
var parent = path.dirname(file).split(path.sep).slice(-2, -1)[0]; | ||
var collection = path.dirname(file).split(path.sep).pop(); | ||
var parent = path.normalize(path.dirname(file)).split(path.sep).slice(-2, -1)[0]; | ||
var collection = path.normalize(path.dirname(file)).split(path.sep).pop(); | ||
var isSubCollection = (dirs.indexOf(parent) > -1); | ||
@@ -207,4 +207,4 @@ | ||
var fileMatter = matter.read(file); | ||
var collection = path.dirname(file).split(path.sep).pop(); | ||
var parent = path.dirname(file).split(path.sep).slice(-2, -1)[0]; | ||
var collection = path.normalize(path.dirname(file)).split(path.sep).pop(); | ||
var parent = path.normalize(path.dirname(file)).split(path.sep).slice(-2, -1)[0]; | ||
var isSubCollection = (dirs.indexOf(parent) > -1); | ||
@@ -371,3 +371,3 @@ var id = (isSubCollection) ? collection + '.' + getFileName(file) : getFileName(file); | ||
// determine if view is part of a collection (subdir) | ||
var dirname = path.dirname(file).split(path.sep).pop(), | ||
var dirname = path.normalize(path.dirname(file)).split(path.sep).pop(), | ||
collection = (dirname !== 'views') ? dirname : ''; | ||
@@ -374,0 +374,0 @@ |
{ | ||
"name": "fabricator-assemble", | ||
"version": "1.0.4", | ||
"version": "1.0.5", | ||
"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
26865