We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c5f8e83 commit f5c3554Copy full SHA for f5c3554
npm/binary.js
@@ -1,4 +1,5 @@
1
const { Binary } = require("binary-install");
2
+const { join } = require("path");
3
const os = require("os");
4
5
const windows = "x86_64-pc-windows-msvc";
@@ -30,7 +31,9 @@ const getBinary = () => {
30
31
const author = "rustwasm";
32
const name = "wasm-pack";
33
const url = `https://github.com/${author}/${name}/releases/download/v${version}/${name}-v${version}-${platform}.tar.gz`;
- return new Binary(platform === windows ? "wasm-pack.exe" : "wasm-pack", url);
34
+ return new Binary(platform === windows ? "wasm-pack.exe" : "wasm-pack", url, {
35
+ installDirectory: join(__dirname, "binary")
36
+ });
37
};
38
39
const install = () => {
0 commit comments