lerna 3.16.4 (new formula)
Closes #42377. Signed-off-by: Sean Molenaar <smillerdev@me.com>
This commit is contained in:
parent
4147b56da2
commit
b0bb8563f6
1 changed files with 22 additions and 0 deletions
22
Formula/lerna.rb
Normal file
22
Formula/lerna.rb
Normal 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
|
Loading…
Reference in a new issue