heroku: disable migrator
Closes #29513. Signed-off-by: ilovezfs <ilovezfs@icloud.com>
This commit is contained in:
parent
9dd89633d6
commit
44ee997952
1 changed files with 11 additions and 0 deletions
|
@ -6,6 +6,7 @@ class Heroku < Formula
|
|||
# heroku should only be updated every 10 releases on multiples of 10
|
||||
url "https://registry.npmjs.org/heroku/-/heroku-7.5.0.tgz"
|
||||
sha256 "e3e66b26167379b4d6ce6f40d7ca3f3bc89beadf75c26d01add8f84c41eb0381"
|
||||
revision 1
|
||||
head "https://github.com/heroku/cli.git"
|
||||
|
||||
bottle do
|
||||
|
@ -18,6 +19,16 @@ class Heroku < Formula
|
|||
depends_on "node"
|
||||
|
||||
def install
|
||||
# disable migrator
|
||||
inreplace "lib/hooks/update/brew.js", "if (this.config.platform !== 'darwin')",
|
||||
"if (true)"
|
||||
|
||||
# disable outdated check
|
||||
inreplace "package.json", /.*plugin-warn-if-update-available.*$\n/, ""
|
||||
|
||||
# replace `heroku update` messaging
|
||||
inreplace "bin/run", "npm update -g heroku", "brew upgrade heroku"
|
||||
|
||||
inreplace "bin/run", "#!/usr/bin/env node",
|
||||
"#!#{Formula["node"].opt_bin}/node"
|
||||
system "npm", "install", *Language::Node.std_npm_install_args(libexec)
|
||||
|
|
Loading…
Reference in a new issue