0
0
Fork 0

Add symbolic link for yarnpkg (#7894)

This commit is contained in:
Yamagishi Kazutoshi 2018-06-27 03:34:01 +09:00 committed by Eugen Rochko
parent 995f8b389a
commit 523d8f20e3
2 changed files with 2 additions and 1 deletions

View file

@ -2,7 +2,7 @@
APP_ROOT = File.expand_path('..', __dir__)
Dir.chdir(APP_ROOT) do
begin
exec "yarnpkg #{ARGV.join(' ')}" unless Dir.exist?('node_modules')
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"