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

h*: use std_npm_args #179096

Merged
merged 10 commits into from
Jul 31, 2024
2 changes: 1 addition & 1 deletion Formula/h/hasura-cli.rb
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ def install
cd "cli-ext" do
# TODO: Remove `npm update pkg` when https://github.com/hasura/graphql-engine/issues/9440 is resolved.
system "npm", "update", "pkg"
system "npm", "install", *Language::Node.local_npm_install_args
system "npm", "install", *std_npm_args(prefix: false)
system "npm", "run", "prebuild"
system "./node_modules/.bin/pkg", "./build/command.js", "--output", "./bin/cli-ext-hasura", "-t", "host"
end
Expand Down
4 changes: 1 addition & 3 deletions Formula/h/hexo.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
require "language/node"

class Hexo < Formula
desc "Fast, simple & powerful blog framework"
homepage "https://hexo.io/"
Expand All @@ -22,7 +20,7 @@ class Hexo < Formula

def install
mkdir_p libexec/"lib"
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 their native slices.
Expand Down
4 changes: 1 addition & 3 deletions Formula/h/hsd.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
require "language/node"

class Hsd < Formula
desc "Handshake Daemon & Full Node"
homepage "https://handshake.org"
Expand All @@ -26,7 +24,7 @@ class Hsd < Formula
depends_on "unbound"

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/h/http-server.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
require "language/node"

class HttpServer < Formula
desc "Simple zero-configuration command-line HTTP server"
homepage "https://github.com/http-party/http-server"
Expand All @@ -15,7 +13,7 @@ class HttpServer < 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/h/httpyac.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
require "language/node"

class Httpyac < Formula
desc "Quickly and easily send REST, SOAP, GraphQL and gRPC requests"
homepage "https://httpyac.github.io/"
Expand All @@ -24,7 +22,7 @@ class Httpyac < Formula
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/*"]

clipboardy_fallbacks_dir = libexec/"lib/node_modules/#{name}/node_modules/clipboardy/fallbacks"
Expand Down
Loading