embedlabs 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 CHANGED
@@ -7,4 +7,4 @@ npm install -g embedlabs@alpha
7
7
  embedlabs --help
8
8
  ```
9
9
 
10
- This package forwards to `@kvell007/embed-labs-cli@0.1.0-alpha.41`.
10
+ This package forwards to `@kvell007/embed-labs-cli@0.1.0-alpha.43`.
@@ -7,13 +7,20 @@ const target = `${platform()}-${arch()}`;
7
7
 
8
8
  const steps = phase === "preinstall"
9
9
  ? [
10
- [3, `install: initializing (${target})`],
11
- [8, "install: preparing npm package graph"],
12
- [15, "install: resolving Embed Labs package"]
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
- [85, "install: linking CLI command"],
16
- [95, "install: finalizing package"],
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.write(line);
28
- if (!process.stdout.isTTY && process.env.EMBEDLABS_INSTALL_NO_TTY !== "1") {
29
- try {
30
- writeFileSync(platform() === "win32" ? "\\\\.\\CONOUT$" : "/dev/tty", line, { flag: "a" });
31
- } catch {}
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",
3
- "version": "0.1.0-alpha.41",
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.41"
19
+ "@kvell007/embed-labs-cli": "0.1.0-alpha.43"
20
20
  },
21
21
  "publishConfig": {
22
22
  "access": "public",