1
0
Fork 0
mirror of https://github.com/jashkenas/coffeescript.git synced 2022-11-09 12:23:24 -05:00

merging gfxmonk's removed error event fix.

This commit is contained in:
Jeremy Ashkenas 2010-04-24 22:13:13 -04:00
parent e9b37c7578
commit 212ad45be4

View file

@ -6,9 +6,7 @@ CoffeeScript: require './lib/coffee-script'
# Run a CoffeeScript through our node/coffee interpreter. # Run a CoffeeScript through our node/coffee interpreter.
run: (args) -> run: (args) ->
proc: spawn 'bin/coffee', args proc: spawn 'bin/coffee', args
err: "" proc.stderr.addListener 'data', (buffer) -> puts buffer.toString()
proc.stderr.addListener 'data', (data) -> err += data
proc.addListener 'exit', (ex) -> puts err if ex != 0
option '-p', '--prefix [DIR]', 'set the installation prefix for `cake install`' option '-p', '--prefix [DIR]', 'set the installation prefix for `cake install`'