embedlabs-cli 0.1.0-alpha.41 → 0.1.0-alpha.43
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 -1
- package/bin/install-progress.js +20 -10
- package/package.json +2 -2
package/README.md
CHANGED
package/bin/install-progress.js
CHANGED
|
@@ -7,13 +7,20 @@ const target = `${platform()}-${arch()}`;
|
|
|
7
7
|
|
|
8
8
|
const steps = phase === "preinstall"
|
|
9
9
|
? [
|
|
10
|
-
[
|
|
11
|
-
[
|
|
12
|
-
[
|
|
10
|
+
[5, `install: initializing (${target})`],
|
|
11
|
+
[12, "install: checking platform"],
|
|
12
|
+
[20, "install: resolving packages"],
|
|
13
|
+
[28, "install: preparing dependency graph"],
|
|
14
|
+
[36, "install: downloading packages"],
|
|
15
|
+
[44, "install: extracting packages"],
|
|
16
|
+
[52, "install: preparing CLI"],
|
|
17
|
+
[60, "install: preparing native bridge"],
|
|
18
|
+
[68, "install: preparing command links"],
|
|
19
|
+
[76, "install: waiting for npm"]
|
|
13
20
|
]
|
|
14
21
|
: [
|
|
15
|
-
[
|
|
16
|
-
[
|
|
22
|
+
[88, "install: verifying commands"],
|
|
23
|
+
[94, "install: finalizing installation"],
|
|
17
24
|
[100, "install: complete"]
|
|
18
25
|
];
|
|
19
26
|
|
|
@@ -24,11 +31,14 @@ for (const [percent, message] of steps) {
|
|
|
24
31
|
|
|
25
32
|
function writeProgress(percent, message) {
|
|
26
33
|
const line = `[Embed Labs] ${String(percent).padStart(3, " ")}% ${message}\n`;
|
|
27
|
-
process.stdout.
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
34
|
+
if (process.stdout.isTTY || process.env.EMBEDLABS_INSTALL_NO_TTY === "1") {
|
|
35
|
+
process.stdout.write(line);
|
|
36
|
+
return;
|
|
37
|
+
}
|
|
38
|
+
try {
|
|
39
|
+
writeFileSync(platform() === "win32" ? "\\\\.\\CONOUT$" : "/dev/tty", line, { flag: "a" });
|
|
40
|
+
} catch {
|
|
41
|
+
process.stdout.write(line);
|
|
32
42
|
}
|
|
33
43
|
}
|
|
34
44
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "embedlabs-cli",
|
|
3
|
-
"version": "0.1.0-alpha.
|
|
3
|
+
"version": "0.1.0-alpha.43",
|
|
4
4
|
"description": "EmbedBoard CLI alias package for Embed Labs Cloud integration testing.",
|
|
5
5
|
"private": false,
|
|
6
6
|
"type": "module",
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
"README.md"
|
|
17
17
|
],
|
|
18
18
|
"dependencies": {
|
|
19
|
-
"@kvell007/embed-labs-cli": "0.1.0-alpha.
|
|
19
|
+
"@kvell007/embed-labs-cli": "0.1.0-alpha.43"
|
|
20
20
|
},
|
|
21
21
|
"publishConfig": {
|
|
22
22
|
"access": "public",
|