Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

k,l*: use std_npm_args #179113

Merged
merged 10 commits into from
Aug 2, 2024
4 changes: 1 addition & 3 deletions Formula/k/keploy.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
require "language/node"

class Keploy < Formula
desc "Testing Toolkit creates test-cases and data mocks from API calls, DB queries"
homepage "https://keploy.io"
Expand Down Expand Up @@ -31,7 +29,7 @@ class Keploy < Formula
def install
resource("ui").stage do
ENV["SHARP_IGNORE_GLOBAL_LIBVIPS"] = "1"
system "npm", "install", "--legacy-peer-deps", *Language::Node.local_npm_install_args
system "npm", "install", "--legacy-peer-deps", *std_npm_args(prefix: false)
system "gatsby", "build"
buildpath.install "./public"
end
Expand Down
4 changes: 1 addition & 3 deletions Formula/k/kubevious.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
require "language/node"

class Kubevious < Formula
desc "Detects and prevents Kubernetes misconfigurations and violations"
homepage "https://github.com/kubevious/cli"
Expand All @@ -20,7 +18,7 @@ class Kubevious < Formula
depends_on "node"

def install
system "npm", "install", *Language::Node.std_npm_install_args(libexec)
system "npm", "install", *std_npm_args
bin.install_symlink Dir["#{libexec}/bin/*"]
end

Expand Down
4 changes: 1 addition & 3 deletions Formula/k/kuto.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
require "language/node"

class Kuto < Formula
desc "Reverse JS bundler"
homepage "https://github.com/samthor/kuto"
Expand All @@ -14,7 +12,7 @@ class Kuto < Formula
depends_on "node"

def install
system "npm", "install", *Language::Node.std_npm_install_args(libexec)
system "npm", "install", *std_npm_args
bin.install_symlink Dir["#{libexec}/bin/*"]
end

Expand Down
8 changes: 2 additions & 6 deletions Formula/l/leapp-cli.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
require "language/node"

class LeappCli < Formula

Check warning on line 1 in Formula/l/leapp-cli.rb

View workflow job for this annotation

GitHub Actions / Linux

`brew linkage --cached --test --strict leapp-cli` failed on Linux!

Indirect dependencies with linkage: glib
desc "Cloud credentials manager cli"
homepage "https://github.com/noovolari/leapp"
url "https://registry.npmjs.org/@noovolari/leapp-cli/-/leapp-cli-0.1.65.tgz"
Expand Down Expand Up @@ -28,15 +26,13 @@
end

def install
system "npm", "install", *Language::Node.std_npm_install_args(libexec)
system "npm", "install", *std_npm_args
bin.install_symlink Dir["#{libexec}/bin/*"]
end

def caveats
<<~EOS
This formula only installs the command-line utilities by default.

Install Leapp.app with Homebrew Cask:
Only the `leap` CLI is installed. For Leapp.app:
brew install --cask leapp
EOS
end
Expand Down
4 changes: 1 addition & 3 deletions Formula/l/lerna.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
require "language/node"

class Lerna < Formula
desc "Tool for managing JavaScript projects with multiple packages"
homepage "https://lerna.js.org"
Expand All @@ -20,7 +18,7 @@ class Lerna < Formula
depends_on "node"

def install
system "npm", "install", *Language::Node.std_npm_install_args(libexec)
system "npm", "install", *std_npm_args
bin.install_symlink Dir["#{libexec}/bin/*"]

# Replace universal binaries with native slices
Expand Down
Loading