@blutui/courier 1.1.0 → 1.1.4
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/README.md +1 -11
- package/package.json +4 -1
- package/scripts/postinstall.js +11 -5
- package/bin/courier +0 -0
package/README.md
CHANGED
|
@@ -6,8 +6,6 @@
|
|
|
6
6
|
|
|
7
7
|
`blutui/courier` The command line tool for Blutui.
|
|
8
8
|
|
|
9
|
-
[](https://codecov.io/gh/blutui/courier)
|
|
10
|
-
|
|
11
9
|
---
|
|
12
10
|
|
|
13
11
|
## Commands
|
|
@@ -81,13 +79,5 @@ courier push
|
|
|
81
79
|
Get the version of Blutui Courier.
|
|
82
80
|
|
|
83
81
|
```sh
|
|
84
|
-
courier
|
|
85
|
-
```
|
|
86
|
-
|
|
87
|
-
## Developing Blutui Courier
|
|
88
|
-
|
|
89
|
-
If you're working on developing the CLI, its recommended that you alias the go command to run the dev version.
|
|
90
|
-
|
|
91
|
-
```sh
|
|
92
|
-
alias courier-dev='go run cmd/courier/main.go'
|
|
82
|
+
courier version
|
|
93
83
|
```
|
package/package.json
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@blutui/courier",
|
|
3
|
-
"
|
|
3
|
+
"description": "The command line tool for Blutui",
|
|
4
|
+
"version": "1.1.4",
|
|
5
|
+
"author": "Blutui",
|
|
4
6
|
"type": "module",
|
|
5
7
|
"files": [
|
|
6
8
|
"scripts"
|
|
@@ -12,6 +14,7 @@
|
|
|
12
14
|
"postinstall": "node scripts/postinstall.js"
|
|
13
15
|
},
|
|
14
16
|
"dependencies": {
|
|
17
|
+
"bin-links": "^5.0.0",
|
|
15
18
|
"decompress": "^4.2.1",
|
|
16
19
|
"https-proxy-agent": "^7.0.6",
|
|
17
20
|
"node-fetch": "^3.3.2"
|
package/scripts/postinstall.js
CHANGED
|
@@ -2,15 +2,16 @@
|
|
|
2
2
|
|
|
3
3
|
"use strict";
|
|
4
4
|
|
|
5
|
-
import fs from "fs";
|
|
6
|
-
import os from "os";
|
|
7
|
-
import path from "path";
|
|
8
|
-
import fetch from "node-fetch";
|
|
9
5
|
import { Agent } from "https";
|
|
6
|
+
import { createHash } from "crypto";
|
|
10
7
|
import { HttpsProxyAgent } from "https-proxy-agent";
|
|
11
8
|
import { pipeline } from "stream/promises";
|
|
12
|
-
import
|
|
9
|
+
import binLinks from "bin-links";
|
|
13
10
|
import decompress from "decompress";
|
|
11
|
+
import fetch from "node-fetch";
|
|
12
|
+
import fs from "fs";
|
|
13
|
+
import os from "os";
|
|
14
|
+
import path from "path";
|
|
14
15
|
|
|
15
16
|
const ARCH_MAPPING = {
|
|
16
17
|
x64: "x86_64", // amd64
|
|
@@ -135,6 +136,11 @@ async function main() {
|
|
|
135
136
|
}
|
|
136
137
|
}
|
|
137
138
|
|
|
139
|
+
await binLinks({
|
|
140
|
+
path: path.resolve("."),
|
|
141
|
+
pkg: { ...pkg, bin: { courier: binPath } },
|
|
142
|
+
});
|
|
143
|
+
|
|
138
144
|
console.info("Installed Blutui Courier successfully");
|
|
139
145
|
}
|
|
140
146
|
|
package/bin/courier
DELETED
|
Binary file
|