Skip to content

Commit a1f9b9a

Browse files
Kureevdanez
authored andcommitted
Support ts(x) file parsing using CLI (#391)
1 parent 8f8d09b commit a1f9b9a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bin/react-docgen.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ if (errorMessage) {
207207
}
208208
} else {
209209
try {
210-
result[filePath] = parse(fs.readFileSync(filePath));
210+
result[filePath] = parse(fs.readFileSync(filePath), filePath);
211211
} catch (parseError) {
212212
writeError(parseError, filePath);
213213
} finally {

0 commit comments

Comments
 (0)