firebase-cli 11.20.0
* firebase-cli 11.20.0 * firebase-cli: don't remove non-existing files Fixes: Errno::ENOENT: No such file or directory @ apply2files - /home/linuxbrew/.linuxbrew/Cellar/firebase-cli/11.20.0/libexec/lib/node_modules/firebase-tools/node_modules/term-size/vendor * firebase-cli: fix build Closes #119906. Signed-off-by: Rui Chen <rui@chenrui.dev> Co-authored-by: Michka Popoff <michkapopoff@gmail.com> Co-authored-by: Rui Chen <rui@chenrui.dev> Signed-off-by: Alexander Bayandin <alexander@bayandin.dev> Signed-off-by: BrewTestBot <1589480+BrewTestBot@users.noreply.github.com>master
parent
15eabb66e8
commit
efeee9417b
|
@ -3,8 +3,8 @@ require "language/node"
|
|||
class FirebaseCli < Formula
|
||||
desc "Firebase command-line tools"
|
||||
homepage "https://firebase.google.com/docs/cli/"
|
||||
url "https://registry.npmjs.org/firebase-tools/-/firebase-tools-11.19.0.tgz"
|
||||
sha256 "076ecce3116ae29de7ea1ef3683909c6833f5e00542af4b303ea744c0c48e963"
|
||||
url "https://registry.npmjs.org/firebase-tools/-/firebase-tools-11.20.0.tgz"
|
||||
sha256 "9c4db0c26028d08c4302b59d0f07c5f141fcb0aa4ee2580fe30bc9e7e960b19f"
|
||||
license "MIT"
|
||||
head "https://github.com/firebase/firebase-tools.git", branch: "master"
|
||||
|
||||
|
@ -21,23 +21,10 @@ class FirebaseCli < Formula
|
|||
depends_on "node"
|
||||
|
||||
uses_from_macos "expect" => :test
|
||||
on_macos do
|
||||
depends_on "macos-term-size"
|
||||
end
|
||||
|
||||
def install
|
||||
system "npm", "install", *Language::Node.std_npm_install_args(libexec)
|
||||
bin.install_symlink Dir["#{libexec}/bin/*"]
|
||||
|
||||
term_size_vendor_dir = libexec/"lib/node_modules/firebase-tools/node_modules/term-size/vendor"
|
||||
term_size_vendor_dir.rmtree # remove pre-built binaries
|
||||
|
||||
if OS.mac?
|
||||
macos_dir = term_size_vendor_dir/"macos"
|
||||
macos_dir.mkpath
|
||||
# Replace the vendored pre-built term-size with one we build ourselves
|
||||
ln_sf (Formula["macos-term-size"].opt_bin/"term-size").relative_path_from(macos_dir), macos_dir
|
||||
end
|
||||
end
|
||||
|
||||
test do
|
||||
|
|
Loading…
Reference in New Issue