Add symbolic link for yarnpkg (#7894)
This commit is contained in:
parent
995f8b389a
commit
523d8f20e3
2 changed files with 2 additions and 1 deletions
2
bin/yarn
2
bin/yarn
|
@ -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"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue