aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortruiken <truiken@gmail.com>2014-08-29 11:41:13 -0700
committerRichard van Velzen <rvanvelzen1@gmail.com>2015-01-04 21:01:11 +0100
commit0f80b1058d233f11b95fef567d1b37dd88c94f09 (patch)
tree2e85e1fea44d9691a28db1a6a7bbab2a9d6b88d2
parent4613644cce9f64cef4115cbfff660b41d51a9b9d (diff)
downloadtracifyjs-0f80b1058d233f11b95fef567d1b37dd88c94f09.tar.gz
tracifyjs-0f80b1058d233f11b95fef567d1b37dd88c94f09.zip
Resolve the relative path to lib files last
This allows usage of UglifyJS on build systems which have a flat (or non-matching relative) directory structure for source files.
-rw-r--r--tools/node.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/node.js b/tools/node.js
index b08559ad..9e9c2c14 100644
--- a/tools/node.js
+++ b/tools/node.js
@@ -35,7 +35,7 @@ var FILES = exports.FILES = [
"../lib/sourcemap.js",
"../lib/mozilla-ast.js"
].map(function(file){
- return path.join(path.dirname(fs.realpathSync(__filename)), file);
+ return fs.realpathSync(path.join(path.dirname(__filename), file));
});
FILES.forEach(load_global);