Skip to content

Commit

Permalink
Merge pull request #22052 from storybookjs/kasper/babel-monorepo-mention
Browse files Browse the repository at this point in the history
CLI: Mention how to setup a monorepo manually with babel in missing babelrc automigration
  • Loading branch information
kasperpeulen committed Apr 13, 2023
2 parents 6b38158 + 87ab700 commit e59a067
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion code/lib/cli/src/automigrate/fixes/missing-babelrc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,14 +64,20 @@ export const missingBabelRc: Fix<MissingBabelRcOptions> = {
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() {
Expand Down

0 comments on commit e59a067

Please sign in to comment.