import { download , paths } from '../plugins/screenshotting/server/utils' ; export const downloadChromium = async ( ) => { const consoleLogger = ( tag ) => ( message ) => console . log ( tag , message ) ; const logger = { get : ( ) => logger , debug : consoleLogger ( 'debug' ) , info : consoleLogger ( 'info' ) , warn : consoleLogger ( 'warn' ) , trace : consoleLogger ( 'trace' ) , error : consoleLogger ( 'error' ) , fatal : consoleLogger ( 'fatal' ) , log : consoleLogger ( 'log' ) , } ; await Promise . all ( paths . packages . map ( ( pkg ) => download ( pkg , logger ) ) ) ; } ;