Skip to content

Commit

Permalink
hsd: depend on node@14
Browse files Browse the repository at this point in the history
  • Loading branch information
branchvincent committed Feb 19, 2022
1 parent 20e1970 commit 854f703
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Formula/hsd.rb
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,12 @@ class Hsd < Formula
end

depends_on "[email protected]" => :build
depends_on "node@10"
depends_on "node@14"
depends_on "unbound"

def install
system "#{Formula["node@10"].bin}/npm", "install", *Language::Node.std_npm_install_args(libexec)
(bin/"hsd").write_env_script libexec/"bin/hsd", PATH: "#{Formula["node@10"].opt_bin}:$PATH"
system "npm", "install", *Language::Node.std_npm_install_args(libexec)
(bin/"hsd").write_env_script libexec/"bin/hsd", PATH: "#{Formula["node@14"].opt_bin}:$PATH"
bin.install_symlink libexec/"bin/hsd-cli"
bin.install_symlink libexec/"bin/hsw-cli"
end
Expand All @@ -44,7 +44,7 @@ def install
await node.ensure();
})();
EOS
system "#{Formula["node@10"].opt_bin}/node", testpath/"script.js"
system "#{Formula["node@14"].opt_bin}/node", testpath/"script.js"
assert File.directory?("#{testpath}/.hsd")
end
end

0 comments on commit 854f703

Please sign in to comment.