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

d*: use std_npm_args #179046

Merged
merged 10 commits into from
Jul 31, 2024
4 changes: 1 addition & 3 deletions Formula/d/dbml-cli.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
require "language/node"

class DbmlCli < Formula
desc "Convert DBML file to SQL and vice versa"
homepage "https://www.dbml.org/cli/"
Expand All @@ -20,7 +18,7 @@ class DbmlCli < 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
4 changes: 1 addition & 3 deletions Formula/d/devcontainer.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
require "language/node"

class Devcontainer < Formula
desc "Reference implementation for the Development Containers specification"
homepage "https://containers.dev"
Expand All @@ -20,7 +18,7 @@ class Devcontainer < 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/d/dicebear.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
require "language/node"

class Dicebear < Formula
desc "CLI for DiceBear - An avatar library for designers and developers"
homepage "https://github.com/dicebear/dicebear"
Expand All @@ -24,7 +22,7 @@ class Dicebear < 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/*"]

node_modules = libexec/"lib/node_modules/dicebear/node_modules"
Expand Down
4 changes: 1 addition & 3 deletions Formula/d/dockerfile-language-server.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
require "language/node"

class DockerfileLanguageServer < Formula
desc "Language server for Dockerfiles powered by Node, TypeScript, and VSCode"
homepage "https://github.com/rcjsuen/dockerfile-language-server"
Expand All @@ -21,7 +19,7 @@ class DockerfileLanguageServer < 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/d/dockly.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
require "language/node"

class Dockly < Formula
desc "Immersive terminal interface for managing docker containers and services"
homepage "https://lirantal.github.io/dockly/"
Expand All @@ -24,7 +22,7 @@ class Dockly < 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