Skip to content

Commit acd58dc

Browse files
Add tsx files to the search pattern, see TypeStrong#147
1 parent 0388204 commit acd58dc

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

bin/typedoc.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -497,7 +497,7 @@ var td;
497497
if (td.FS.statSync(realpath).isDirectory()) {
498498
add(realpath);
499499
}
500-
else if (/\.ts$/.test(realpath)) {
500+
else if (/\.tsx?$/.test(realpath)) {
501501
if (exclude && exclude.match(realpath.replace(/\\/g, '/'))) {
502502
return;
503503
}

src/td/Application.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -435,7 +435,7 @@ module td
435435
var realpath = Path.join(dirname, file);
436436
if (FS.statSync(realpath).isDirectory()) {
437437
add(realpath);
438-
} else if (/\.ts$/.test(realpath)) {
438+
} else if (/\.tsx?$/.test(realpath)) {
439439
if (exclude && exclude.match(realpath.replace(/\\/g, '/'))) {
440440
return;
441441
}

0 commit comments

Comments
 (0)