Skip to content

Commit 1c15c5e

Browse files
diogoazevedosSMillerDev
authored andcommitted
bcoin: revision for node
1 parent 71b081a commit 1c15c5e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Formula/bcoin.rb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ class Bcoin < Formula
66
url "https://github.com/bcoin-org/bcoin/archive/v2.1.2.tar.gz"
77
sha256 "b4c63598ee1efc17e4622ef88c1dff972692da1157e8daf7da5ea8abc3d234df"
88
license "MIT"
9-
revision 1
9+
revision 2
1010
head "https://github.com/bcoin-org/bcoin.git"
1111

1212
bottle do
@@ -19,6 +19,8 @@ class Bcoin < Formula
1919
depends_on "node"
2020

2121
def install
22+
# These dirs must exists before npm install.
23+
mkdir_p libexec/"lib"
2224
system "#{Formula["node"].libexec}/bin/npm", "install", *Language::Node.std_npm_install_args(libexec)
2325
(bin/"bcoin").write_env_script libexec/"bin/bcoin", PATH: "#{Formula["node"].opt_bin}:$PATH"
2426
end

0 commit comments

Comments
 (0)