Skip to content

Commit

Permalink
Fix component path generation is documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
Justin Campbell committed Sep 17, 2020
1 parent 8d9a728 commit 1b04a6a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions styleguidist/styleguide.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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}/';`
},

/**
Expand Down

0 comments on commit 1b04a6a

Please sign in to comment.