[Pkg-javascript-commits] [node-module-deps] 260/444: fix module-deps bin
Bastien Roucariès
rouca at moszumanska.debian.org
Fri Dec 15 09:48:01 UTC 2017
This is an automated email from the git hooks/post-receive script.
rouca pushed a commit to branch master
in repository node-module-deps.
commit a23c204b5d9ba068a1379ac93893f8381b4344b1
Author: James Halliday <mail at substack.net>
Date: Sun Jul 20 13:56:00 2014 -0700
fix module-deps bin
---
bin/cmd.js | 9 +++++----
1 file changed, 5 insertions(+), 4 deletions(-)
diff --git a/bin/cmd.js b/bin/cmd.js
index afec864..c776ed7 100755
--- a/bin/cmd.js
+++ b/bin/cmd.js
@@ -11,14 +11,15 @@ if (argv.help) return usage(0);
var JSONStream = require('JSONStream');
-var stringify = JSONStream.stringify();
-stringify.pipe(process.stdout);
-
var files = argv._.map(function (file) {
if (file === '-') return process.stdin;
return path.resolve(file);
});
-mdeps(files, argv).pipe(stringify);
+var md = mdeps(argv);
+md.pipe(JSONStream.stringify()).pipe(process.stdout);
+
+files.forEach(function (file) { md.write(file) });
+md.end();
function usage (code) {
var r = fs.createReadStream(__dirname + '/usage.txt');
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/node-module-deps.git
More information about the Pkg-javascript-commits
mailing list