From 7193df5a5137b992b28b6a5f7541a29ea7621a4c Mon Sep 17 00:00:00 2001 From: Andrew Ortwein Date: Wed, 21 Feb 2024 17:55:54 -0500 Subject: [PATCH] Dipping toes just a little further into the water --- node-src/lib/checkStorybookBaseDir.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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)