From e461f8112e099045820fa3ccc485c36818648b13 Mon Sep 17 00:00:00 2001 From: Valentin Palkovic Date: Mon, 13 May 2024 12:08:39 +0200 Subject: [PATCH 1/2] Automigration: Enhance react-docgen automigration prompt --- code/lib/cli/src/automigrate/fixes/react-docgen.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/code/lib/cli/src/automigrate/fixes/react-docgen.ts b/code/lib/cli/src/automigrate/fixes/react-docgen.ts index f791be0ab068..bf5a94b00cdd 100644 --- a/code/lib/cli/src/automigrate/fixes/react-docgen.ts +++ b/code/lib/cli/src/automigrate/fixes/react-docgen.ts @@ -62,7 +62,9 @@ export const reactDocgen: Fix = { For known "react-docgen" limitations, see: ${chalk.yellow('https://github.com/storybookjs/storybook/issues/26606')} - Would you like to switch back to ${chalk.cyan('react-docgen-typescript')} in your Storybook? + Press Y to switch back to ${chalk.cyan( + 'react-docgen-typesript' + )}, press N to use ${chalk.cyan('react-docgen')} `; } }, From 07e4e463d9216a17387cd55b8eb0aac5a0517095 Mon Sep 17 00:00:00 2001 From: Jeppe Reinhold Date: Mon, 13 May 2024 23:45:10 +0200 Subject: [PATCH 2/2] Update code/lib/cli/src/automigrate/fixes/react-docgen.ts Co-authored-by: Michael Shilman --- code/lib/cli/src/automigrate/fixes/react-docgen.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/lib/cli/src/automigrate/fixes/react-docgen.ts b/code/lib/cli/src/automigrate/fixes/react-docgen.ts index bf5a94b00cdd..9800e0cb3b05 100644 --- a/code/lib/cli/src/automigrate/fixes/react-docgen.ts +++ b/code/lib/cli/src/automigrate/fixes/react-docgen.ts @@ -62,7 +62,7 @@ export const reactDocgen: Fix = { For known "react-docgen" limitations, see: ${chalk.yellow('https://github.com/storybookjs/storybook/issues/26606')} - Press Y to switch back to ${chalk.cyan( + Press Y to revert to ${chalk.cyan( 'react-docgen-typesript' )}, press N to use ${chalk.cyan('react-docgen')} `;