@aptos-labs/aptos-cli 0.1.4 → 0.1.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/bin/aptos +5 -3
  2. package/package.json +1 -1
package/bin/aptos CHANGED
@@ -96,8 +96,10 @@ const main = async () => {
96
96
  } catch (e) {
97
97
  path = "";
98
98
  }
99
- } else {
99
+ } else if (os === "Windows") {
100
100
  path = `${__dirname}\\${PNAME}.exe`;
101
+ } else {
102
+ path = `${__dirname}\\${PNAME}`;
101
103
  }
102
104
 
103
105
  // If binary does not exist, download it.
@@ -132,14 +134,14 @@ const main = async () => {
132
134
  }
133
135
 
134
136
  // Spawn a child process to execute the binary with the provided arguments.
135
- if (os === "MacOS") {
137
+ if (os === "Windows") {
136
138
  spawn(path, process.argv.slice(2), {
137
139
  stdio: "inherit",
140
+ shell: true,
138
141
  });
139
142
  } else {
140
143
  spawn(path, process.argv.slice(2), {
141
144
  stdio: "inherit",
142
- shell: true,
143
145
  });
144
146
  }
145
147
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aptos-labs/aptos-cli",
3
- "version": "0.1.4",
3
+ "version": "0.1.6",
4
4
  "description": "Aptos CLI available from npmjs",
5
5
  "bin": {
6
6
  "aptos": "bin/aptos"