mirror of
https://github.com/facebook/docusaurus.git
synced 2025-05-31 09:57:03 +02:00
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:
parent
0f144213d6
commit
c3127b65d1
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue