diff --git a/build.js b/build.js index 7bafac8f6..17ac6c276 100644 --- a/build.js +++ b/build.js @@ -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; }); }; diff --git a/test/index.html b/test/index.html index 0af34d0b7..6372bb415 100644 --- a/test/index.html +++ b/test/index.html @@ -69,7 +69,6 @@ 'test.js' ); - console.log(testPath) QUnit.config.autostart = false; // load Lo-Dash as a module