Skip to content

Commit

Permalink
Only generate tsx files.
Browse files Browse the repository at this point in the history
  • Loading branch information
T4rk1n committed Mar 18, 2022
1 parent 3fb6f30 commit c4ff36b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions dash/meta-ts.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,9 @@ function gatherComponents(directory, components = {}) {
if (fs.lstatSync(filepath).isDirectory()) {
gatherComponents(f, components);
} else {
if (!filepath.endsWith(".tsx")) {
return;
}
try {
filepaths.push(filepath);
const name = /(.*)\.tsx/.exec(f)[1];
Expand Down

0 comments on commit c4ff36b

Please sign in to comment.