import execa from 'execa' ; import P from 'pino' ; const isExecaError = ( error ) : error is execa . ExecaError => ( error as any ) . all !== undefined ; export const logError = ( error , logger ) => { logger . error ( { err : isExecaError ( error ) ? `${ error . message }\n${ error . all }` : error } ) ; } ;