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);