Skip to content

Commit

Permalink
1710717286
Browse files Browse the repository at this point in the history
  • Loading branch information
azimux committed Mar 17, 2024
1 parent 093eead commit 76dd5f0
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion src/write_empty_typescript_react_project_to_disk.rb
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,19 @@ def execute
stats
end

# A bit confusing... we need to write the files to the output_directory/project_dir
# and the code that writes the generated files assumes that output_directory contains the place
# to write the files not the place to initiate the project
def output_directory
project_directory
end

def output_parent_directory
inputs[:output_directory]
end

def project_directory
"#{output_directory}/#{empty_typescript_react_project_config.project_dir}"
"#{output_parent_directory}/#{empty_typescript_react_project_config.project_dir}"
end

def generate_file_contents
Expand Down

0 comments on commit 76dd5f0

Please sign in to comment.