From 44e895543949bc2579e3f66c8826a3622f78b4be Mon Sep 17 00:00:00 2001 From: Dimitri Kopriwa Date: Thu, 7 Mar 2019 19:03:20 +0700 Subject: [PATCH] fix(config): components now accept index.js when parrent directory is uppercase --- src/createConfig.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/createConfig.js b/src/createConfig.js index 4b53f7e..1013703 100644 --- a/src/createConfig.js +++ b/src/createConfig.js @@ -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',