lerna 3.16.4 (new formula)

Closes #42377.

Signed-off-by: Sean Molenaar <smillerdev@me.com>
This commit is contained in:
Rui Chen 2019-07-23 23:30:46 -04:00 committed by Sean Molenaar
parent 4147b56da2
commit b0bb8563f6
No known key found for this signature in database
GPG key ID: 6BF5D8DF0D34FAAE

22
Formula/lerna.rb Normal file
View file

@ -0,0 +1,22 @@
require "language/node"
class Lerna < Formula
desc "Tool for managing JavaScript projects with multiple packages"
homepage "https://lerna.js.org"
url "https://registry.npmjs.org/lerna/-/lerna-3.16.4.tgz"
sha256 "dcaee23bbed63e3c278a934394a2cbef3ff896d12cc10ffae67f38960ce7d979"
depends_on "node"
def install
system "npm", "install", *Language::Node.std_npm_install_args(libexec)
bin.install_symlink Dir["#{libexec}/bin/*"]
end
test do
assert_match version.to_s, shell_output("#{bin}/lerna --version")
output = shell_output("#{bin}/lerna init --independent 2>&1")
assert_match "lerna success Initialized Lerna files", output
end
end