Skip to content

Commit 23925df

Browse files
committed
import custom types in ComamndForm.tsx.erb
1 parent 53f0e24 commit 23925df

File tree

4 files changed

+10
-2
lines changed

4 files changed

+10
-2
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## [0.0.5] - 2025-02-21
2+
3+
-
4+
15
## [0.0.4] - 2025-02-21
26

37
- Bump Ruby to 3.4.2

Gemfile.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
PATH
22
remote: .
33
specs:
4-
foobara-typescript-react-command-form-generator (0.0.4)
4+
foobara-typescript-react-command-form-generator (0.0.5)
55
foobara
66
foobara-files-generator
77
foobara-typescript-remote-command-generator

templates/CommandForm.tsx.erb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ import <%= inputs_class_name %> from "<%= path_to_root %><%= command_generator.i
77
import <%= result_class_name %> from "<%= path_to_root %><%= command_generator.import_path %>/Result"
88
import { Error as <%= error_class_name %> } from "<%= path_to_root %><%= command_generator.import_path %>/Errors"
99

10+
<% dependency_roots.each do |dependency_root| %>
11+
import <%= dependency_root.import_destructure %> from "<%= path_to_root %><%= dependency_root.import_path %>"
12+
<% end %>
13+
1014
export default function <%= command_name %>Form (): JSX.Element {
1115
<% non_colliding_inputs.each do |flattened_attribute| %>
1216
<% if flattened_attribute.has_default? %>

version.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
module Foobara
22
module Generators
33
module TypescriptReactCommandFormGenerator
4-
VERSION = "0.0.4".freeze
4+
VERSION = "0.0.5".freeze
55

66
local_ruby_version = File.read("#{__dir__}/.ruby-version").chomp
77
local_ruby_version_minor = local_ruby_version[/\A(\d+\.\d+)\.\d+\z/, 1]

0 commit comments

Comments
 (0)