diff options
author | Yamagishi Kazutoshi <ykzts@desire.sh> | 2018-04-12 21:45:17 +0900 |
---|---|---|
committer | Eugen Rochko <eugen@zeonfederated.com> | 2018-04-12 14:45:17 +0200 |
commit | 50529cbceb84e611bca497624a7a4c38113e5135 (patch) | |
tree | 753e4e8975f0404717e451fceb64d341f19435fc /bin/yarn | |
parent | 8e88a18316d45a459a31d67487bccc247592d187 (diff) |
Upgrade Rails to version 5.2.0 (#5898)
Diffstat (limited to 'bin/yarn')
-rwxr-xr-x | bin/yarn | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/bin/yarn b/bin/yarn new file mode 100755 index 000000000..8c1535a78 --- /dev/null +++ b/bin/yarn @@ -0,0 +1,11 @@ +#!/usr/bin/env ruby +APP_ROOT = File.expand_path('..', __dir__) +Dir.chdir(APP_ROOT) do + begin + exec "yarnpkg #{ARGV.join(' ')}" unless Dir.exist?('node_modules') + rescue Errno::ENOENT + $stderr.puts "Yarn executable was not detected in the system." + $stderr.puts "Download Yarn at https://yarnpkg.com/en/docs/install" + exit 1 + end +end |