* Fix reference to chalk's color level * Upgrade XO and reformat * Update dev dependencies * Update production dependencies * Rebuild lockfile * CI: Continue when 'npm ls' errors in TypeScript compatibility job
15 lines
351 B
JavaScript
15 lines
351 B
JavaScript
import {Chalk} from 'chalk'; // eslint-disable-line unicorn/import-style
|
|
|
|
let chalk = new Chalk(); // eslint-disable-line import/no-mutable-exports
|
|
|
|
export {chalk};
|
|
|
|
let configured = false;
|
|
export function set(options) {
|
|
if (configured) {
|
|
throw new Error('Chalk has already been configured');
|
|
}
|
|
|
|
configured = true;
|
|
chalk = new Chalk(options);
|
|
}
|