embedboard-cli 0.1.0-alpha.42 → 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 embedboard-cli@alpha
7
7
  embedboard-cli --help
8
8
  ```
9
9
 
10
- This package forwards to `@kvell007/embed-labs-cli@0.1.0-alpha.42`.
10
+ This package forwards to `@kvell007/embed-labs-cli@0.1.0-alpha.43`.
@@ -10,19 +10,19 @@ const steps = phase === "preinstall"
10
10
  [5, `install: initializing (${target})`],
11
11
  [12, "install: checking platform"],
12
12
  [20, "install: resolving packages"],
13
- [28, "install: preparing dependency graph"]
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"]
14
20
  ]
15
- : phase === "install"
16
- ? [
17
- [45, "install: installing CLI files"],
18
- [60, "install: installing native bridge"],
19
- [74, "install: linking package files"]
20
- ]
21
- : [
22
- [86, "install: verifying commands"],
23
- [94, "install: finalizing installation"],
24
- [100, "install: complete"]
25
- ];
21
+ : [
22
+ [88, "install: verifying commands"],
23
+ [94, "install: finalizing installation"],
24
+ [100, "install: complete"]
25
+ ];
26
26
 
27
27
  for (const [percent, message] of steps) {
28
28
  writeProgress(percent, message);
@@ -31,11 +31,14 @@ for (const [percent, message] of steps) {
31
31
 
32
32
  function writeProgress(percent, message) {
33
33
  const line = `[Embed Labs] ${String(percent).padStart(3, " ")}% ${message}\n`;
34
- process.stdout.write(line);
35
- if (!process.stdout.isTTY && process.env.EMBEDLABS_INSTALL_NO_TTY !== "1") {
36
- try {
37
- writeFileSync(platform() === "win32" ? "\\\\.\\CONOUT$" : "/dev/tty", line, { flag: "a" });
38
- } 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);
39
42
  }
40
43
  }
41
44
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "embedboard-cli",
3
- "version": "0.1.0-alpha.42",
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",
@@ -9,7 +9,6 @@
9
9
  },
10
10
  "scripts": {
11
11
  "preinstall": "node bin/install-progress.js preinstall",
12
- "install": "node bin/install-progress.js install",
13
12
  "postinstall": "node bin/install-progress.js postinstall"
14
13
  },
15
14
  "files": [
@@ -17,7 +16,7 @@
17
16
  "README.md"
18
17
  ],
19
18
  "dependencies": {
20
- "@kvell007/embed-labs-cli": "0.1.0-alpha.42"
19
+ "@kvell007/embed-labs-cli": "0.1.0-alpha.43"
21
20
  },
22
21
  "publishConfig": {
23
22
  "access": "public",