|
@@ -1,7 +1,7 @@
|
|
|
var path = require('path'),
|
|
|
url = require('url'),
|
|
|
_ = require('lodash'),
|
|
|
- findit = require('findit'),
|
|
|
+ findit = require('findit2'),
|
|
|
fs = require('fs');
|
|
|
|
|
|
function eachConfigFile(root, callback) {
|
|
@@ -47,6 +47,7 @@ function transformPaths(json, root, file, dirs) {
|
|
|
switch (typeof pathValue) {
|
|
|
case "string":
|
|
|
array[key] = url.resolve(dir, pathValue) || ".";
|
|
|
+ if (array[key].slice(-1) === "/") array[key] = array[key].slice(0, -1);
|
|
|
break;
|
|
|
case "object":
|
|
|
Array.isArray(pathValue) && transformPathArray(pathValue);
|