Skip to content

Commit

Permalink
log isStorybookFile
Browse files Browse the repository at this point in the history
  • Loading branch information
codykaup committed Jan 22, 2025
1 parent 243f966 commit 6d33bf3
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion node-src/lib/getDependentStoryFiles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -155,8 +155,11 @@ export async function getDependentStoryFiles(
const reasonsById = new Map<Module['id'], NormalizedName[]>();
const csfGlobsByName = new Set<NormalizedName>();

const isStorybookFile = (name: string) =>
ctx.log.debug('isStorybookFile - storybookDir', storybookDirectory);
const isStorybookFile = (name: string) => {
ctx.log.debug('isStorybookFile', name);
name && name.startsWith(`${storybookDirectory}/`) && !storiesEntryFiles.has(name);
};

stats.modules
.filter((module_) => isUserModule(module_))
Expand Down

0 comments on commit 6d33bf3

Please sign in to comment.