Binaries / New configs from Rails 5.2 app:update

This commit is contained in:
Karl Erik Õunapuu 2020-04-15 09:19:43 +03:00
parent 1747de8eb5
commit 7c7bcf4b41
7 changed files with 111 additions and 12 deletions

View file

@ -1,8 +1,8 @@
#!/usr/bin/env ruby
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(" ")}"
exec "yarnpkg", *ARGV
rescue Errno::ENOENT
$stderr.puts "Yarn executable was not detected in the system."
$stderr.puts "Download Yarn at https://yarnpkg.com/en/docs/install"