import { NdjsonToMessageStream } from '@cucumber/message-streams' ; import commander from 'commander' ; import p from '../package.json' ; import { pipeline } from 'stream' ; import CucumberHtmlStream from './CucumberHtmlStream' ; const program = new commander . Command ( ) ; program . version ( p . version ) ; program . parse ( process . argv ) ; const toMessageStream = new NdjsonToMessageStream ( ) ; pipeline ( process . stdin , toMessageStream , new CucumberHtmlStream ( __dirname + '/../../dist/main.css' , __dirname + '/../../dist/main.js' ) , process . stdout , ( err ) => { if ( err ) { console . error ( err ) ; process . exit ( 1 ) ; } } ) ;