Skip to content

Commit

Permalink
fix(config): components now accept index.js when parrent directory is…
Browse files Browse the repository at this point in the history
… uppercase
  • Loading branch information
Dimitri Kopriwa committed Mar 7, 2019
1 parent 9d00f08 commit 44e8955
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/createConfig.js
Original file line number Diff line number Diff line change
Expand Up @@ -418,7 +418,10 @@ export function createConfig(config = {}, options = {}) {
...userRequireConfig || [],
],
styleguideDir: 'public',
components: 'src/components/**/[A-Z]*.js',
components: [
'src/components/**/[A-Z]*.js',
'src/components/**/[A-Z]*/index.js',
],
previewDelay: 500,
skipComponentsWithoutExample: false,
exampleMode: 'expand',
Expand Down

0 comments on commit 44e8955

Please sign in to comment.