aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoryuuji.yaginuma <yuuji.yaginuma@gmail.com>2018-11-04 10:00:19 +0900
committeryuuji.yaginuma <yuuji.yaginuma@gmail.com>2018-11-04 10:00:19 +0900
commitcaad9e1080e5b98bc8b3c40c0f2d226a3a9e859a (patch)
tree9878888eea864040408670d7941f341057f4c11d
parent5821b1fd79eddd3dc8bb7ae919f235963e019442 (diff)
downloadrails-caad9e1080e5b98bc8b3c40c0f2d226a3a9e859a.tar.gz
rails-caad9e1080e5b98bc8b3c40c0f2d226a3a9e859a.tar.bz2
rails-caad9e1080e5b98bc8b3c40c0f2d226a3a9e859a.zip
Keep new line after the last dependency
If add a package with `yarn`, it will have a newline after the last dependency so let's match with that.
-rw-r--r--railties/lib/rails/generators/rails/app/templates/package.json.tt2
1 files changed, 1 insertions, 1 deletions
diff --git a/railties/lib/rails/generators/rails/app/templates/package.json.tt b/railties/lib/rails/generators/rails/app/templates/package.json.tt
index a654cba39c..7174116989 100644
--- a/railties/lib/rails/generators/rails/app/templates/package.json.tt
+++ b/railties/lib/rails/generators/rails/app/templates/package.json.tt
@@ -5,7 +5,7 @@
"rails-ujs": ">=5.2.1"<% unless options[:skip_turbolinks] %>,
"turbolinks": "5.1.1"<% end -%><% unless skip_active_storage? %>,
"activestorage": ">=5.2.1"<% end -%><% unless options[:skip_action_cable] %>,
- "actioncable": ">=5.2.1"<% end -%>
+ "actioncable": ">=5.2.1"<% end %>
},
"version": "0.1.0"
}