Ensure category modules reference dependencies with relative paths.

Former-commit-id: 143360f03cc30f759ebd8e5e949b0dd8a1b937b5
This commit is contained in:
John-David Dalton
2013-07-14 13:10:46 -07:00
parent 3048ac2f6d
commit 4649bd3906
2 changed files with 4 additions and 2 deletions

View File

@@ -829,8 +829,11 @@
fromPath || (fromPath = '');
return dependencies.map(function(depName) {
var toPath = getPath(depName),
relative = (path.relative(fromPath, toPath) || '.').replace(RegExp(path.sepEscaped, 'g'), sep);
relative = path.relative(fromPath, toPath).replace(RegExp(path.sepEscaped, 'g'), sep);
if (relative.charAt(0) != '.') {
relative = '.' + (relative ? sep + relative : '');
}
return relative + sep + depName;
});
};

View File

@@ -69,7 +69,6 @@
'test.js'
);
console.log(testPath)
QUnit.config.autostart = false;
// load Lo-Dash as a module