diff --git a/lib/getStaticTypes.js b/lib/getStaticTypes.js index 61a8a7a8..ca5a7416 100644 --- a/lib/getStaticTypes.js +++ b/lib/getStaticTypes.js @@ -30,7 +30,7 @@ module.exports = async playroomConfig => { const { parse } = require('react-docgen-typescript').withCustomConfig( tsConfigPath ); - const files = await fastGlob(typeScriptFiles, { cwd }); + const files = await fastGlob(typeScriptFiles, { cwd, absolute: true }); const types = parse(files); const typesByDisplayName = keyBy(types, 'displayName'); const parsedTypes = mapValues(typesByDisplayName, component =>