Skip to content

Commit

Permalink
fix: rsw install
Browse files Browse the repository at this point in the history
  • Loading branch information
lencx committed May 15, 2022
1 parent 5abf58a commit 48b2962
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "rsw"
version = "0.7.7"
version = "0.7.8"
description = "wasm-pack based build tool"
edition = "2021"
authors = ["lencx <cxin1314@gmail.com>"]
Expand Down
4 changes: 3 additions & 1 deletion npm/binary-install.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,13 +42,15 @@ class Binary {
}
this.url = url;
this.name = name;
this.installDirectory = join(process.cwd(), "node_modules", ".bin");

this.installDirectory = join(__dirname, "../../", ".bin");

if (!existsSync(this.installDirectory)) {
mkdirSync(this.installDirectory, { recursive: true });
}

this.binaryPath = join(this.installDirectory, this.name);

}

install(fetchOptions) {
Expand Down
2 changes: 1 addition & 1 deletion npm/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@rsw/cli",
"version": "0.7.7",
"version": "0.7.8",
"description": "🦞 wasm-pack based build tool",
"main": "binary.js",
"author": "lencx <cxin1314@gmail.com>",
Expand Down

0 comments on commit 48b2962

Please sign in to comment.