woocommerce/tools/version-bump/lib/logger.ts

17 lines
279 B
TypeScript

/**
* External dependencies
*/
const chalk = require( 'chalk' );
const { error } = console;
/**
* This is a temporary Logger until a common one is built.
*/
export class Logger {
static error( message: string ) {
error( chalk.red( message ) );
process.exit( 1 );
}
}