Skip to content

Commit

Permalink
fix incorrect logic on detecting stories.mdx
Browse files Browse the repository at this point in the history
  • Loading branch information
ndelangen committed Feb 8, 2024
1 parent 2bfea5f commit 332b8da
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion code/lib/cli/src/autoblock/block-stories-mdx.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export const blocker = createBlocker({
id: 'storiesMdxUsage',
async check() {
const files = await glob('**/*.stories.mdx', { cwd: process.cwd() });
if (files.length > 0) {
if (files.length === 0) {
return false;
}
return { files };
Expand Down

0 comments on commit 332b8da

Please sign in to comment.