diff options
author | George Claghorn <george.claghorn@gmail.com> | 2017-10-24 20:42:17 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-10-24 20:42:17 -0400 |
commit | 0beb22d6d15cb639c131bc135bc917112581ccd6 (patch) | |
tree | dfe28e8375bcade87490340811841dd742c072a7 /railties/lib/rails | |
parent | 2c845f6b03ddf2aa233b00385d24d769a4a34fa6 (diff) | |
parent | 510147c1c63ded90d8668e85f2150dd637543fa9 (diff) | |
download | rails-0beb22d6d15cb639c131bc135bc917112581ccd6.tar.gz rails-0beb22d6d15cb639c131bc135bc917112581ccd6.tar.bz2 rails-0beb22d6d15cb639c131bc135bc917112581ccd6.zip |
Merge pull request #30978 from y-yagi/change_vendor_path_to_app_root
Change `VENDOR_PATH` to `APP_ROOT` in `bin/yarn`
Diffstat (limited to 'railties/lib/rails')
-rw-r--r-- | railties/lib/rails/generators/rails/app/templates/bin/yarn | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/railties/lib/rails/generators/rails/app/templates/bin/yarn b/railties/lib/rails/generators/rails/app/templates/bin/yarn index c2f9b6768a..b4e4d95286 100644 --- a/railties/lib/rails/generators/rails/app/templates/bin/yarn +++ b/railties/lib/rails/generators/rails/app/templates/bin/yarn @@ -1,5 +1,5 @@ -VENDOR_PATH = File.expand_path('..', __dir__) -Dir.chdir(VENDOR_PATH) do +APP_ROOT = File.expand_path('..', __dir__) +Dir.chdir(APP_ROOT) do begin exec "yarnpkg #{ARGV.join(' ')}" rescue Errno::ENOENT |