diff --git a/tools/license2rtf.mjs b/tools/license2rtf.mjs index 0772b161ed06b1..4cdca33b60995e 100644 --- a/tools/license2rtf.mjs +++ b/tools/license2rtf.mjs @@ -289,11 +289,15 @@ class RtfGenerator extends Stream { stdin.setEncoding('utf-8'); stdin.resume(); -await pipeline( - stdin, - new LineSplitter(), - new ParagraphParser(), - new Unwrapper(), - new RtfGenerator(), - stdout, -); +async function main() { + await pipeline( + stdin, + new LineSplitter(), + new ParagraphParser(), + new Unwrapper(), + new RtfGenerator(), + stdout, + ); +} + +main().catch(console.error);