-
-
Notifications
You must be signed in to change notification settings - Fork 12.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
20e1970
commit 854f703
Showing
1 changed file
with
4 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
|
@@ -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 |