Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump binary-install version to fix Windows installs #759

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions npm/install.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/usr/bin/env node

const { install } = require("./binary");
install();
6 changes: 4 additions & 2 deletions npm/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions npm/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
"description": "📦✨ your favorite rust -> wasm workflow tool!",
"main": "binary.js",
"scripts": {
"postinstall": "node -e 'require(\"./binary.js\").install()'",
"preuninstall": "node -e 'require(\"./binary.js\").uninstall()'"
"postinstall": "node ./install.js",
"preuninstall": "node ./uninstall.js"
},
"bin": {
"wasm-pack": "./run.js"
Expand All @@ -30,6 +30,6 @@
},
"homepage": "https://github.com/rustwasm/wasm-pack#readme",
"dependencies": {
"binary-install": "0.0.0"
"binary-install": "0.0.1"
}
}
2 changes: 1 addition & 1 deletion npm/run.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env node

const { run } = require("./binary");
run()
run();
4 changes: 4 additions & 0 deletions npm/uninstall.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/usr/bin/env node

const { uninstall } = require("./binary");
uninstall();