fix(v2) : use safe/unsafe wording to denote swizzle safety (#4547)

* fix : make swizzle items more accessible

* feat : use safe/unsafe wording

Co-authored-by: Lisa Chandra <52909743+lisa761@users.noreply.github.com>
Co-authored-by: Javid <singularity.javid@gmail.com>
This commit is contained in:
besemuna 2021-04-06 13:02:07 +00:00 committed by GitHub
parent b6fbca70b8
commit 44029128fa
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -94,8 +94,8 @@ function themeComponents(
return ` return `
${chalk.cyan('Theme components available for swizzle')} ${chalk.cyan('Theme components available for swizzle')}
${chalk.green('green =>')} recommended: lower breaking change risk ${chalk.green('green =>')} safe: lower breaking change risk
${chalk.red('red =>')} internal: higher breaking change risk ${chalk.red('red =>')} unsafe: higher breaking change risk
${components.join('\n')} ${components.join('\n')}
`; `;
@ -123,8 +123,8 @@ function colorCode(
); );
return [ return [
...greenComponents.map((component) => chalk.green(component)), ...greenComponents.map((component) => chalk.green(`safe: ${component}`)),
...redComponents.map((component) => chalk.red(component)), ...redComponents.map((component) => chalk.red(`unsafe: ${component}`)),
]; ];
} }