Skip to content

Commit

Permalink
fix(docz-core): entries filepath
Browse files Browse the repository at this point in the history
  • Loading branch information
pedronauck committed Apr 15, 2018
1 parent 4de326a commit e45fea0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion packages/playgrodd-core/src/compiler/create-config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,9 @@ export const createConfig = async (
resolve: {
extensions: ['.js', '.jsx', '.ts', '.tsx', '.json'],
modules: [paths.ROOT, 'node_modules'],
alias: { src: path.join(paths.ROOT, 'src') },
alias: {
src: path.join(paths.ROOT, 'src'),
},
},
plugins: [
new webpack.NamedModulesPlugin(),
Expand Down
2 changes: 1 addition & 1 deletion packages/playgrodd-core/src/compiler/files-parser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ const mountEntriesMapper = (file: string): IEntryObj => {
const ast = convertToAst(file)
const name = getNameFromDoc(ast) || ''
const route = path.join('/', path.parse(file).dir, name)
const filepath = path.relative(ROOT_PATH, file)
const filepath = path.join(ROOT_PATH, file)

return {
name,
Expand Down

0 comments on commit e45fea0

Please sign in to comment.