@altronix/cli 0.7.10 → 0.7.11

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/dist/build.js CHANGED
@@ -297,7 +297,6 @@ function cmakeConfigure(opts) {
297
297
  fout.close();
298
298
  ferr.close();
299
299
  out.destroy();
300
- subscriber.next({ item, complete: true });
301
300
  subscriber.complete();
302
301
  });
303
302
  out.on("data", (data) => subscriber.next({ item, output: data.toString() }));
@@ -327,14 +326,14 @@ function cmakeBuild(opts) {
327
326
  fout.close();
328
327
  ferr.close();
329
328
  out.destroy();
330
- subscriber.next({ item, complete: true });
331
329
  subscriber.complete();
332
330
  });
333
331
  out.on("data", (data) => subscriber.next({ item, output: data.toString() }));
334
332
  })));
335
333
  }
336
334
  function cmake(opts) {
337
- return concat(cmakeConfigure(opts), cmakeBuild(opts));
335
+ const { name: item } = cmakeItem(opts);
336
+ return concat(cmakeConfigure(opts), cmakeBuild(opts), of({ item, complete: true }));
338
337
  }
339
338
  function emulateBytePages(board) {
340
339
  return (board.startsWith("atsame54_xpro") ||
package/dist/build.ui.js CHANGED
@@ -11,10 +11,11 @@ export default function ({ items, progress$ }) {
11
11
  setWidth(width);
12
12
  }, [items]);
13
13
  return (React.createElement(Box, { flexDirection: "column" }, items.map((item) => (React.createElement(Box, { key: item.name },
14
- React.createElement(Box, { width: width, marginRight: 2 },
14
+ React.createElement(Box, { width: width, marginRight: 1 },
15
15
  React.createElement(Text, { wrap: "truncate", bold: true }, item.name.padStart(width))),
16
- React.createElement(Box, { width: 4, marginRight: 2 },
16
+ React.createElement(Box, { width: 4, marginRight: 1 },
17
17
  React.createElement(Text, { wrap: "truncate", bold: true, color: buildColor(item.kind) }, item.kind.toUpperCase().padStart(4))),
18
+ React.createElement(Box, { width: 2, marginRight: 1 }, progress[item.name] && React.createElement(Text, { color: "cyan" }, "=>")),
18
19
  React.createElement(Text, { dimColor: !progressComplete(progress[item.name]), color: progressColor(progress[item.name]) }, progress[item.name]))))));
19
20
  }
20
21
  function buildColor(kind) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@altronix/cli",
3
- "version": "0.7.10",
3
+ "version": "0.7.11",
4
4
  "license": "MIT",
5
5
  "bin": {
6
6
  "atx": "./dist/index.js"