@yaakapp/cli 0.0.13 → 0.0.14
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.
- package/install.cjs +3 -3
- package/package.json +4 -2
- package/uninstall.cjs +0 -0
package/install.cjs
CHANGED
@@ -2,16 +2,16 @@ const fs = require("fs");
|
|
2
2
|
const path = require("path");
|
3
3
|
const zlib = require("zlib");
|
4
4
|
const https = require("https");
|
5
|
-
const {
|
5
|
+
const {getBinaryPath, getBinaryName} = require("./util");
|
6
6
|
|
7
7
|
// Adjust the version you want to install. You can also make this dynamic.
|
8
8
|
const VERSION = "0.0.10";
|
9
9
|
|
10
10
|
// Windows binaries end with .exe so we need to special-case them.
|
11
|
-
const binaryName =
|
11
|
+
const binaryName = getBinaryName();
|
12
12
|
|
13
13
|
// Compute the path we want to emit the binary to
|
14
|
-
const binaryInstallationPath =
|
14
|
+
const binaryInstallationPath = getBinaryPath()
|
15
15
|
fs.mkdirSync(path.dirname(binaryInstallationPath), {recursive: true});
|
16
16
|
|
17
17
|
function makeRequest(url) {
|
package/package.json
CHANGED
@@ -1,12 +1,14 @@
|
|
1
1
|
{
|
2
2
|
"name": "@yaakapp/cli",
|
3
|
-
"version": "0.0.
|
3
|
+
"version": "0.0.14",
|
4
4
|
"files": [
|
5
5
|
"install.cjs",
|
6
|
+
"uninstall.cjs",
|
6
7
|
"bin"
|
7
8
|
],
|
8
9
|
"scripts": {
|
9
|
-
"postinstall": "node ./install.cjs"
|
10
|
+
"postinstall": "node ./install.cjs",
|
11
|
+
"preuninstall": "node ./uninstall.cjs"
|
10
12
|
},
|
11
13
|
"bin": {
|
12
14
|
"yaakcli": "bin/yaakcli"
|
package/uninstall.cjs
ADDED
File without changes
|