From 87ab700aca5518f4447713e2a662c8b12a032a0d Mon Sep 17 00:00:00 2001 From: Kasper Peulen Date: Wed, 12 Apr 2023 15:07:18 +0200 Subject: [PATCH] Add a note about monorepo in missing babel rc migration --- code/lib/cli/src/automigrate/fixes/missing-babelrc.ts | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/code/lib/cli/src/automigrate/fixes/missing-babelrc.ts b/code/lib/cli/src/automigrate/fixes/missing-babelrc.ts index 3f165201693f..d67e602a3c0e 100644 --- a/code/lib/cli/src/automigrate/fixes/missing-babelrc.ts +++ b/code/lib/cli/src/automigrate/fixes/missing-babelrc.ts @@ -64,14 +64,20 @@ export const missingBabelRc: Fix = { If your project does not have a babel configuration file, we can generate one that's equivalent to the 6.x defaults for you. Keep in mind that this can affect your project if it uses babel, and you may need to make additional changes based on your projects needs. + ${chalk.bold( + 'Note:' + )} This automatic setup doesn't work in a monorepo, see the babel documentation for how to setup babel manually: + ${chalk.yellow('https://babeljs.io/docs')} + We can create a ${chalk.blue( '.babelrc.json' )} file with some basic configuration and add any necessary package devDependencies. - + Please see the migration guide for more information: ${chalk.yellow( 'https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#babel-mode-v7-exclusively' )} + `; }, async run() {