Skip to content

Commit

Permalink
Support ts(x) file parsing using CLI (#391)
Browse files Browse the repository at this point in the history
  • Loading branch information
Kureev authored and danez committed Oct 16, 2019
1 parent 8f8d09b commit a1f9b9a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/react-docgen.js
Expand Up @@ -207,7 +207,7 @@ if (errorMessage) {
}
} else {
try {
result[filePath] = parse(fs.readFileSync(filePath));
result[filePath] = parse(fs.readFileSync(filePath), filePath);
} catch (parseError) {
writeError(parseError, filePath);
} finally {
Expand Down

0 comments on commit a1f9b9a

Please sign in to comment.