Skip to content

Commit c4ff36b

Browse files
committed
Only generate tsx files.
1 parent 3fb6f30 commit c4ff36b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Diff for: dash/meta-ts.js

+3
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,9 @@ function gatherComponents(directory, components = {}) {
7878
if (fs.lstatSync(filepath).isDirectory()) {
7979
gatherComponents(f, components);
8080
} else {
81+
if (!filepath.endsWith(".tsx")) {
82+
return;
83+
}
8184
try {
8285
filepaths.push(filepath);
8386
const name = /(.*)\.tsx/.exec(f)[1];

0 commit comments

Comments
 (0)