[Pkg-javascript-commits] [node-acorn-jsx] 142/484: Fixed: replace absolute with relative require, remove unsupported --trackComments from usage.

Bastien Roucariès rouca at moszumanska.debian.org
Sat Aug 19 14:20:16 UTC 2017


This is an automated email from the git hooks/post-receive script.

rouca pushed a commit to branch master
in repository node-acorn-jsx.

commit cfbbeebe8b4bbed077c9053e0819bd0e206f4a82
Author: Aparajita Fishman <aparajita at aparajita.com>
Date:   Tue Sep 3 11:39:49 2013 -0400

    Fixed: replace absolute with relative require, remove unsupported --trackComments from usage.
    
    Unless I'm missing something, the simple relative path "../acorn.js" is exactly equivalent to the absolute path being constructed in the old code.
---
 bin/acorn | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/bin/acorn b/bin/acorn
index b8d544f..046fdf6 100755
--- a/bin/acorn
+++ b/bin/acorn
@@ -2,13 +2,13 @@
 
 var path = require('path');
 var fs = require('fs');
-var acorn = require(path.join(path.dirname(fs.realpathSync(__filename)), "../acorn.js"));
+var acorn = require('../acorn.js');
 
 var infile, parsed, options = {}, silent = false, compact = false;
 
 function help(status) {
   console.log("usage: " + path.basename(process.argv[1]) + " infile [--ecma3|--ecma5] [--strictSemicolons]");
-  console.log("        [--trackComments] [--locations] [--compact] [--silent] [--help]");
+  console.log("        [--locations] [--compact] [--silent] [--help]");
   process.exit(status);
 }
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/node-acorn-jsx.git



More information about the Pkg-javascript-commits mailing list