From 0f80b1058d233f11b95fef567d1b37dd88c94f09 Mon Sep 17 00:00:00 2001 From: truiken Date: Fri, 29 Aug 2014 11:41:13 -0700 Subject: 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. --- tools/node.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- cgit v1.2.3