fix(v2): fix typos in swizzle command (#5094)

* Fix typos in swizzle command

Signed-off-by: Josh-Cena <sidachen2003@gmail.com>

* Unnecessary comma

Signed-off-by: Josh-Cena <sidachen2003@gmail.com>
This commit is contained in:
Joshua Chen 2021-06-30 21:20:26 +08:00 committed by GitHub
parent 0f144213d6
commit c3127b65d1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -257,7 +257,7 @@ export default async function swizzle(
if (mostSuitableMatch !== componentName) {
mostSuitableComponent = mostSuitableMatch;
console.log(
chalk.red(`Component "${componentName}" doesn't exists.`),
chalk.red(`Component "${componentName}" doesn't exist.`),
chalk.yellow(
`"${mostSuitableComponent}" is swizzled instead of "${componentName}".`,
),
@ -296,7 +296,7 @@ export default async function swizzle(
if (!components.includes(mostSuitableComponent) && !danger) {
console.warn(
chalk.red(
`${mostSuitableComponent} is an internal component, and have a higher breaking change probability. If you want to swizzle it, use the "--danger" flag.`,
`${mostSuitableComponent} is an internal component and has a higher breaking change probability. If you want to swizzle it, use the "--danger" flag.`,
),
);
process.exit(1);