Skip to content

Commit

Permalink
fix: Support types from files outside of cwd (#98)
Browse files Browse the repository at this point in the history
  • Loading branch information
adrienharnay authored and markdalgleish committed Dec 10, 2019
1 parent b7b884a commit 02d5f01
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/getStaticTypes.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 =>
Expand Down

0 comments on commit 02d5f01

Please sign in to comment.