import chalk from 'chalk' ; const printedWarnings = [ ] ; export function printWarning ( message ) { if ( ! printedWarnings . includes ( message ) ) { console . warn ( `${ chalk . bgYellow . black ( 'warning:' ) } ${ message }` ) ; printedWarnings . push ( message ) ; } }