yarn: install method should be 'homebrew'

Closes #11374.

Signed-off-by: Tomasz Pajor <tomek@polishgeeks.com>
This commit is contained in:
Iain D Broadfoot 2017-03-21 12:01:55 +00:00 committed by Tomasz Pajor
parent 51d046569a
commit 7117e25d67

View file

@ -20,7 +20,7 @@ class Yarn < Formula
def install def install
system "npm", "install", *Language::Node.std_npm_install_args(libexec) system "npm", "install", *Language::Node.std_npm_install_args(libexec)
bin.install_symlink Dir["#{libexec}/bin/*"] bin.install_symlink Dir["#{libexec}/bin/*"]
inreplace "#{libexec}/lib/node_modules/yarn/package.json", '"installationMethod": "tar"', '"installationMethod": "brew"' inreplace "#{libexec}/lib/node_modules/yarn/package.json", '"installationMethod": "tar"', '"installationMethod": "homebrew"'
end end
test do test do