From 1b04a6a0bee8262d92e472fc670cea8e11e7cd7e Mon Sep 17 00:00:00 2001 From: Justin Campbell Date: Thu, 17 Sep 2020 17:31:07 -0400 Subject: [PATCH] Fix component path generation is documentation --- styleguidist/styleguide.config.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/styleguidist/styleguide.config.js b/styleguidist/styleguide.config.js index f08f9c1..de44a92 100644 --- a/styleguidist/styleguide.config.js +++ b/styleguidist/styleguide.config.js @@ -119,8 +119,7 @@ module.exports = { */ getComponentPathLine(componentPath) { const name = path.basename(componentPath, '.js') - const dir = path.dirname(componentPath) - return `import ${name} from '${dir}/';` + return `import ${name} from './components/${name}/';` }, /**