Commit fa979b88 by kzc Committed by Marijn Haverbeke

allow CLI --output flag to work with stdin input

parent 13e887d9
Pipeline #5379703 passed with stage
in 2 minutes 27 seconds
......@@ -134,9 +134,11 @@ module.exports = function ( command ) {
});
process.stdin.on( 'end', function () {
options.source = command.input = "stdin";
options.file = command.output;
try {
var result = buble.transform( source, options );
write( result, null, command );
write( result, command.output, command );
} catch ( err ) {
handleError( err );
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment