From 6dd068cb74f2913e70f9359cb4e30132cf5ed48f Mon Sep 17 00:00:00 2001 From: Ivan Dalmet Date: Tue, 26 Mar 2019 22:08:55 +0100 Subject: [PATCH] fix(docz-theme-default): apply ignore in props parsing (#723) --- core/docz-core/src/states/props.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/docz-core/src/states/props.ts b/core/docz-core/src/states/props.ts index 04acd20e0..f49b85ec6 100644 --- a/core/docz-core/src/states/props.ts +++ b/core/docz-core/src/states/props.ts @@ -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 = []) =>