Skip to content

Commit 6fc1669

Browse files
committed
Fix prompt logic for building Next.js project and update version to 0.4.2
1 parent 47884ee commit 6fc1669

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

lib/generators/rails/next_rails_scaffold/next_rails_scaffold_generator.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ def create_frontend_project
7373
language = File.exist?("tsconfig.json") ? "typescript" : "javascript"
7474

7575
run("#{selected_package_manager} hygen scaffold #{language} #{name} #{mapped_attributes.join(" ")}")
76-
if !options[:skip_build] && @prompt.no?("Do you want to build your Next.js project? (y/N)")
76+
if !options[:skip_build] && !@prompt.no?("Do you want to build your Next.js project?")
7777
run("#{selected_package_manager.run} build")
7878
end
7979
end
@@ -119,7 +119,7 @@ def check_pm_version!
119119
def append_gitignore!
120120
rows = <<~HEREDOC
121121
122-
# Ingoring node modules for Rails and Next.js projects
122+
# Ignoring node modules for Rails and Next.js projects
123123
node_modules/
124124
HEREDOC
125125

lib/next_rails_scaffold/version.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# frozen_string_literal: true
22

33
module NextRailsScaffold
4-
VERSION = "0.4.1"
4+
VERSION = "0.4.2"
55
end

0 commit comments

Comments
 (0)