diff --git a/node-src/lib/checkStorybookBaseDir.ts b/node-src/lib/checkStorybookBaseDir.ts index e6c4c5b19..514bf73fd 100644 --- a/node-src/lib/checkStorybookBaseDir.ts +++ b/node-src/lib/checkStorybookBaseDir.ts @@ -6,11 +6,11 @@ import pLimit from 'p-limit'; import { exitCodes, setExitCode } from './setExitCode'; export async function checkStorybookBaseDir(ctx: Context, stats: Stats) { - return; - const { storybookBaseDir } = ctx.options; ctx.log.debug('Storybook base directory:', storybookBaseDir); + return; + // Find all js(x)/ts(x) files in stats that are not in node_modules const sourceModuleFiles = stats.modules.filter( (module: any) => !module.name.includes('node_modules') && /\.(js|jsx|ts|tsx)$/.test(module.name)