Skip to content

Commit

Permalink
Rename index.ts to index.tsx
Browse files Browse the repository at this point in the history
  • Loading branch information
jhugman committed Oct 12, 2024
1 parent d2b5de1 commit 07855bd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions crates/ubrn_cli/src/codegen/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ mod files {
pub(super) fn get_files(config: Rc<TemplateConfig>) -> Vec<Rc<dyn RenderedFile>> {
vec![
// typescript
IndexTs::rc_new(config.clone()),
IndexTsx::rc_new(config.clone()),
// C++
TMHeader::rc_new(config.clone()),
TMCpp::rc_new(config.clone()),
Expand Down Expand Up @@ -261,8 +261,8 @@ mod files {
}
}

templated_file!(IndexTs, "index.ts");
impl RenderedFile for IndexTs {
templated_file!(IndexTsx, "index.tsx");
impl RenderedFile for IndexTsx {
fn path(&self, project_root: &Utf8Path) -> Utf8PathBuf {
let filename = "index.tsx";
self.config.project.tm.ts_path(project_root).join(filename)
Expand Down

0 comments on commit 07855bd

Please sign in to comment.