-
Notifications
You must be signed in to change notification settings - Fork 130
Closed
Labels
Description
The stream does not emit a "finish" event.
My scenario is that I listen to the "error" event and proceed differently after the TS compilation depending on if there were errors present. Without the "finish" event I am forced to manually pull out the data and unable to write something like
var error = false;
ts({
noEmitOnError: true,
noImplicitAny: true,
sortOutput: true,
suppressImplicitAnyIndexErrors: true,
target: "ES6",
}))
.once("error", function () { error = true; })
.once("finish", function () { console.log(error ? "yay" : "nay") }));