Skip to content

Commit

Permalink
Merge pull request #178610 from Homebrew/npm-args-w-z
Browse files Browse the repository at this point in the history
[w*-z*]: use `*std_npm_args`
  • Loading branch information
BrewTestBot committed Jul 30, 2024
2 parents 6d5d9c5 + c6c5bef commit 20525a2
Show file tree
Hide file tree
Showing 9 changed files with 10 additions and 27 deletions.
4 changes: 1 addition & 3 deletions Formula/w/web-ext.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
require "language/node"

class WebExt < Formula
desc "Command-line tool to help build, run, and test web extensions"
homepage "https://github.com/mozilla/web-ext"
Expand All @@ -24,7 +22,7 @@ class WebExt < 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/*"]

# Remove vendored pre-built binary `terminal-notifier`
Expand Down
5 changes: 2 additions & 3 deletions Formula/w/webpack.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
require "language/node"
require "json"

class Webpack < Formula
Expand Down Expand Up @@ -31,7 +30,7 @@ def install
buildpath.install resource("webpack-cli")

cd buildpath/"node_modules/webpack" do
system "npm", "install", *Language::Node.local_npm_install_args, "--legacy-peer-deps"
system "npm", "install", *std_npm_args(prefix: false), "--legacy-peer-deps"
end

# declare webpack as a bundledDependency of webpack-cli
Expand All @@ -40,7 +39,7 @@ def install
pkg_json["bundleDependencies"] = ["webpack"]
File.write("package.json", JSON.pretty_generate(pkg_json))

system "npm", "install", *Language::Node.std_npm_install_args(libexec)
system "npm", "install", *std_npm_args

bin.install_symlink libexec/"bin/webpack-cli"
bin.install_symlink libexec/"bin/webpack-cli" => "webpack"
Expand Down
4 changes: 1 addition & 3 deletions Formula/w/webpod.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
require "language/node"

class Webpod < Formula
desc "Deploy websites and apps anywhere"
homepage "https://webpod.dev"
Expand All @@ -14,7 +12,7 @@ class Webpod < 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/w/webtorrent-cli.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
require "language/node"

class WebtorrentCli < Formula
desc "Command-line streaming torrent client"
homepage "https://webtorrent.io/"
Expand All @@ -23,7 +21,7 @@ class WebtorrentCli < 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/*"]

# Remove incompatible pre-built binaries
Expand Down
4 changes: 1 addition & 3 deletions Formula/w/whistle.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
require "language/node"

class Whistle < Formula
desc "HTTP, HTTP2, HTTPS, Websocket debugging proxy"
homepage "https://github.com/avwo/whistle"
Expand All @@ -20,7 +18,7 @@ class Whistle < 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/w/wikibase-cli.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
require "language/node"

class WikibaseCli < Formula
desc "Command-line interface to Wikibase"
homepage "https://github.com/maxlath/wikibase-cli"
Expand All @@ -20,7 +18,7 @@ class WikibaseCli < 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/w/write-good.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
require "language/node"

class WriteGood < Formula
desc "Naive linter for English prose"
homepage "https://github.com/btford/write-good"
Expand All @@ -24,7 +22,7 @@ class WriteGood < 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/y/yaml-language-server.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
require "language/node"

class YamlLanguageServer < Formula
desc "Language Server for Yaml Files"
homepage "https://github.com/redhat-developer/yaml-language-server"
Expand All @@ -20,7 +18,7 @@ class YamlLanguageServer < 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/y/yo.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
require "language/node"

class Yo < Formula
desc "CLI tool for running Yeoman generators"
homepage "https://yeoman.io"
Expand All @@ -20,7 +18,7 @@ class Yo < 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

0 comments on commit 20525a2

Please sign in to comment.