Skip to content

Commit

Permalink
Making Typescript as an option
Browse files Browse the repository at this point in the history
  • Loading branch information
raphox authored Jan 23, 2025
1 parent f047f7b commit 53d01f3
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,9 @@ def create_frontend_project
create_next_app!
install_hygen!

run("npx hygen scaffold javascript #{name} #{mapped_attributes.join(" ")}")
language = File.exist?("tsconfig.json") ? 'typescript' : 'javascript'

run("npx hygen scaffold #{language} #{name} #{mapped_attributes.join(" ")}")
run("yarn build")
end
end
Expand Down

0 comments on commit 53d01f3

Please sign in to comment.