diff options
author | yuuji.yaginuma <yuuji.yaginuma@gmail.com> | 2017-05-01 09:22:05 +0900 |
---|---|---|
committer | yuuji.yaginuma <yuuji.yaginuma@gmail.com> | 2017-05-01 09:24:11 +0900 |
commit | 8ba3da87672ad243ce0ef378369b1a3719192a58 (patch) | |
tree | d4caab343a28d39f1e4b034e983b2be3b269519c | |
parent | 89389428b5d04e14f09009ac9af593d7c3da709f (diff) | |
download | rails-8ba3da87672ad243ce0ef378369b1a3719192a58.tar.gz rails-8ba3da87672ad243ce0ef378369b1a3719192a58.tar.bz2 rails-8ba3da87672ad243ce0ef378369b1a3719192a58.zip |
Remove unnecessary `package.json` deletion
The `package.json` is created only if `skip_yarn` is not specified.
https://github.com/rails/rails/blob/a4c1282854795d1f0d7696ce1ccbabf94b3d9098/railties/lib/rails/generators/rails/app/app_generator.rb#L202..L204
-rw-r--r-- | railties/lib/rails/generators/rails/app/app_generator.rb | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/railties/lib/rails/generators/rails/app/app_generator.rb b/railties/lib/rails/generators/rails/app/app_generator.rb index f4717bb35b..aa0e016424 100644 --- a/railties/lib/rails/generators/rails/app/app_generator.rb +++ b/railties/lib/rails/generators/rails/app/app_generator.rb @@ -317,10 +317,6 @@ module Rails def create_vendor_files build(:vendor) - - if options[:skip_yarn] - remove_file "package.json" - end end def delete_app_assets_if_api_option |