From c3127b65d14341a51b44fe41b38844765f461567 Mon Sep 17 00:00:00 2001 From: Joshua Chen Date: Wed, 30 Jun 2021 21:20:26 +0800 Subject: [PATCH] fix(v2): fix typos in swizzle command (#5094) * Fix typos in swizzle command Signed-off-by: Josh-Cena * Unnecessary comma Signed-off-by: Josh-Cena --- packages/docusaurus/src/commands/swizzle.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/docusaurus/src/commands/swizzle.ts b/packages/docusaurus/src/commands/swizzle.ts index 7dfd545061..7f04a7f4e9 100644 --- a/packages/docusaurus/src/commands/swizzle.ts +++ b/packages/docusaurus/src/commands/swizzle.ts @@ -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);