feat(core): rework swizzle CLI (#6243)

Co-authored-by: sebastienlorber <lorber.sebastien@gmail.com>
This commit is contained in:
Joshua Chen 2022-02-25 21:13:15 +08:00 committed by GitHub
parent d43066f6f1
commit 39b66d82ef
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
78 changed files with 3633 additions and 585 deletions

View file

@ -120,6 +120,10 @@ function success(msg: unknown, ...values: InterpolatableValue[]): void {
);
}
function newLine(): void {
console.log();
}
const logger = {
red: chalk.red,
yellow: chalk.yellow,
@ -136,6 +140,7 @@ const logger = {
warn,
error,
success,
newLine,
};
// TODO remove when migrating to ESM