Do not use path to manipulate target

pull/43/merge
Alex Brausewetter 2015-05-15 10:57:28 +00:00
rodzic 2144e9701a
commit 1a397a4a72
1 zmienionych plików z 2 dodań i 2 usunięć

Wyświetl plik

@ -179,7 +179,7 @@ define(function(require, exports, module) {
excludePattern = /_test/;
var prefix = name.split("/")[0];
var targetPath = path.join(name, type);
var targetPath = name + "/" + type;
if (!pathMap[prefix])
throw new Error("Cannot map prefix " + prefix + " for package " + name);
@ -198,7 +198,7 @@ define(function(require, exports, module) {
});
files.map(function(p) {
result.push(path.join(targetPath, path.basename(p, ".js")));
result.push(targetPath + "/" + path.basename(p, ".js"));
});
}