airterm 1.2.2 → 1.2.3

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.
Files changed (2) hide show
  1. package/dist/cli.js +15 -3
  2. package/package.json +1 -1
package/dist/cli.js CHANGED
@@ -413,12 +413,24 @@ function Connecting({ code, connection, onError }) {
413
413
  console.log("");
414
414
  try {
415
415
  execFileSync("npm", ["install", "-g", "airterm"], {
416
- stdio: "inherit"
416
+ stdio: "pipe"
417
417
  });
418
- console.log("\nNext time, just type `airterm`.\n");
418
+ const installed = isGloballyInstalled();
419
+ if (installed) {
420
+ console.log("\x1B[32mInstalled.\x1B[0m");
421
+ console.log(
422
+ `
423
+ Next time, just type \x1B[1m\x1B[36mairterm\x1B[0m.
424
+ `
425
+ );
426
+ } else {
427
+ console.log(
428
+ "Install may have failed. Try manually: npm install -g airterm\n"
429
+ );
430
+ }
419
431
  } catch {
420
432
  console.log(
421
- "\nInstall failed. You can try manually: npm install -g airterm\n"
433
+ "Install failed. Try manually: npm install -g airterm\n"
422
434
  );
423
435
  }
424
436
  } else {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "airterm",
3
- "version": "1.2.2",
3
+ "version": "1.2.3",
4
4
  "description": "SSH into your AirClaw machine",
5
5
  "type": "module",
6
6
  "bin": {