yarn: set installation method to 'brew'

Fixes #10540
helps with https://github.com/yarnpkg/yarn/issues/2517

Closes #11343.

Signed-off-by: Tomasz Pajor <tomek@polishgeeks.com>
This commit is contained in:
Iain D Broadfoot 2017-03-20 21:31:46 +00:00 committed by Tomasz Pajor
parent 046c75f8a5
commit 3d8e2cc9ec

View file

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