mirror of
https://github.com/facebook/docusaurus.git
synced 2025-06-01 18:32:52 +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) {
|
if (mostSuitableMatch !== componentName) {
|
||||||
mostSuitableComponent = mostSuitableMatch;
|
mostSuitableComponent = mostSuitableMatch;
|
||||||
console.log(
|
console.log(
|
||||||
chalk.red(`Component "${componentName}" doesn't exists.`),
|
chalk.red(`Component "${componentName}" doesn't exist.`),
|
||||||
chalk.yellow(
|
chalk.yellow(
|
||||||
`"${mostSuitableComponent}" is swizzled instead of "${componentName}".`,
|
`"${mostSuitableComponent}" is swizzled instead of "${componentName}".`,
|
||||||
),
|
),
|
||||||
|
@ -296,7 +296,7 @@ export default async function swizzle(
|
||||||
if (!components.includes(mostSuitableComponent) && !danger) {
|
if (!components.includes(mostSuitableComponent) && !danger) {
|
||||||
console.warn(
|
console.warn(
|
||||||
chalk.red(
|
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);
|
process.exit(1);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue