Permalink
Browse files

fix occasional stdin non-termination, #100

  • Loading branch information...
brad committed Jun 20, 2014
1 parent 92873e2 commit 75ae12f2533fede345fc5bf1a834a7207446e3d2
Showing with 6 additions and 10 deletions.
  1. +3 −10 nodejs/cli.js
  2. +3 −0 package.json
View
@@ -5,19 +5,12 @@ Just a simple nodejs wrapper around the .jar file
for easy CLI use
*/
var spawn = require('child_process').spawn,
var kexec = require('kexec'),
fs = require('fs'),
compressor = require('./index'),
args = process.argv.slice(2);
args.unshift(compressor.jar);
args.unshift('-jar');
var cmd = spawn('java', args);
cmd.stdout.on('data',function(data) {
process.stdout.write(data.toString());
});
cmd.stderr.on('data',function(data) {
process.stderr.write(data.toString());
});
args.unshift('java');
kexec(args.join(' '));
View
@@ -16,6 +16,9 @@
}
],
"bugs": { "url" : "http://yuilibrary.com/projects/yuicompressor/newticket" },
"dependencies": {
"kexec": "~0.2.0"
},
"devDependencies": {
"yuitest": "*"
},

0 comments on commit 75ae12f

Please sign in to comment.