Skip to content

Commit

Permalink
Merge pull request #19611 from storybookjs/shilman/fix-mdx2-migration
Browse files Browse the repository at this point in the history
Don't run MDX2 automigration on node_modules
  • Loading branch information
shilman authored Oct 25, 2022
2 parents 01448bc + c4092a8 commit 7171c2d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion code/lib/cli/src/automigrate/fixes/mdx-1-to-2.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export const mdx1to2: Fix<Mdx1to2Options> = {
id: 'mdx1to2',

async check() {
const storiesMdxFiles = await globby('**/*.(story|stories).mdx');
const storiesMdxFiles = await globby('./!(node_modules)**/*.(story|stories).mdx');
return storiesMdxFiles.length ? { storiesMdxFiles } : undefined;
},

Expand Down

0 comments on commit 7171c2d

Please sign in to comment.