We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f047f7b commit 156388fCopy full SHA for 156388f
lib/generators/rails/next_rails_scaffold/next_rails_scaffold_generator.rb
@@ -50,7 +50,9 @@ def create_frontend_project
50
create_next_app!
51
install_hygen!
52
53
- run("npx hygen scaffold javascript #{name} #{mapped_attributes.join(" ")}")
+ language = File.exist?("tsconfig.json") ? "typescript" : "javascript"
54
+
55
+ run("npx hygen scaffold #{language} #{name} #{mapped_attributes.join(" ")}")
56
run("yarn build")
57
end
58
0 commit comments