modulor-js / modulor-storybook

3 stars 2 forks source link

storybook jumps into the node_modules to include other stories #15

Closed pankajpatel closed 7 years ago

pankajpatel commented 7 years ago

I have two components and and one of them is devDependency for another named inspector-component and dates respectively and both of them have some stories.

When I run stories in dates, storybook grabs stories from inspector-component as well.

dates has following config:

module.exports = {
  storiesMask: '**/stories/*'
}
nogizhopaboroda commented 7 years ago

try storiesMask value 'stories/*' or '../stories/*' or '/stories/**'. this should solve your issue now. would 'excludeDir' or similar option in config help?

pankajpatel commented 7 years ago

'**/dates/stories/*' solved issue. Maybe because we match the above mask to full path.

Though storybook should not look into the node_modules

nogizhopaboroda commented 7 years ago

resolved https://github.com/holidaypirates/ascesis-storybook/pull/16