Skip to content

Commit

Permalink
fix(docz-theme-default): apply ignore in props parsing (#723)
Browse files Browse the repository at this point in the history
  • Loading branch information
ivan-dalmet authored and pedronauck committed Mar 26, 2019
1 parent 59a030b commit 6dd068c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/docz-core/src/states/props.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,12 @@ import { Config } from '../config/argv'
import { docgen } from '../utils/docgen'

const getPattern = (config: Config) => {
const { typescript } = config
const { typescript, ignore } = config
return [
typescript ? '**/*.{ts,tsx}' : '**/*.{js,jsx,mjs}',
'!**/node_modules',
'!**/doczrc.js',
]
].concat(ignore.map(entry => `!**/${entry}`))
}

export const mapToArray = (map: any = []) =>
Expand Down

0 comments on commit 6dd068c

Please sign in to comment.