@capawesome/cli 1.6.2 → 1.7.0

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/CHANGELOG.md CHANGED
@@ -2,6 +2,20 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file. See [commit-and-tag-version](https://github.com/absolute-version/commit-and-tag-version) for commit guidelines.
4
4
 
5
+ ## [1.7.0](https://github.com/capawesome-team/cli/compare/v1.6.3...v1.7.0) (2025-03-24)
6
+
7
+
8
+ ### Features
9
+
10
+ * **doctor:** add doctor command ([#37](https://github.com/capawesome-team/cli/issues/37)) ([1d9d0ac](https://github.com/capawesome-team/cli/commit/1d9d0acf74b1b3ce63c87031a8499227bf3e3f8b))
11
+
12
+ ## [1.6.3](https://github.com/capawesome-team/cli/compare/v1.6.2...v1.6.3) (2025-03-20)
13
+
14
+
15
+ ### Bug Fixes
16
+
17
+ * **apps:bundles:create:** handle backslashes on WIndows ([8754f93](https://github.com/capawesome-team/cli/commit/8754f9306e25ff466ec14ba817781f5cad2b4634))
18
+
5
19
  ## [1.6.2](https://github.com/capawesome-team/cli/compare/v1.6.1...v1.6.2) (2025-03-18)
6
20
 
7
21
 
@@ -0,0 +1,34 @@
1
+ "use strict";
2
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
+ return new (P || (P = Promise))(function (resolve, reject) {
5
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
9
+ });
10
+ };
11
+ var __importDefault = (this && this.__importDefault) || function (mod) {
12
+ return (mod && mod.__esModule) ? mod : { "default": mod };
13
+ };
14
+ Object.defineProperty(exports, "__esModule", { value: true });
15
+ const citty_1 = require("citty");
16
+ const consola_1 = __importDefault(require("consola"));
17
+ const package_json_1 = __importDefault(require("../../package.json"));
18
+ const systeminformation_1 = __importDefault(require("systeminformation"));
19
+ exports.default = (0, citty_1.defineCommand)({
20
+ meta: {
21
+ name: 'doctor',
22
+ description: 'Prints out neccessary information for debugging',
23
+ },
24
+ run: () => __awaiter(void 0, void 0, void 0, function* () {
25
+ const osInfo = yield systeminformation_1.default.osInfo();
26
+ const versions = yield systeminformation_1.default.versions('npm, node');
27
+ consola_1.default.box([
28
+ `NodeJS version: ${versions.node}`,
29
+ `NPM version: ${versions.npm}`,
30
+ `CLI version: ${package_json_1.default.version}`,
31
+ `OS: ${osInfo.distro} ${osInfo.release} ${osInfo.codename ? `(${osInfo.codename})` : ''}`,
32
+ ].join('\n'));
33
+ }),
34
+ });
package/dist/index.js CHANGED
@@ -57,6 +57,7 @@ const main = (0, citty_1.defineCommand)({
57
57
  whoami: Promise.resolve().then(() => __importStar(require('./commands/whoami'))).then((mod) => mod.default),
58
58
  login: Promise.resolve().then(() => __importStar(require('./commands/login'))).then((mod) => mod.default),
59
59
  logout: Promise.resolve().then(() => __importStar(require('./commands/logout'))).then((mod) => mod.default),
60
+ doctor: Promise.resolve().then(() => __importStar(require('./commands/doctor'))).then((mod) => mod.default),
60
61
  'apps:create': Promise.resolve().then(() => __importStar(require('./commands/apps/create'))).then((mod) => mod.default),
61
62
  'apps:delete': Promise.resolve().then(() => __importStar(require('./commands/apps/delete'))).then((mod) => mod.default),
62
63
  'apps:bundles:create': Promise.resolve().then(() => __importStar(require('./commands/apps/bundles/create'))).then((mod) => mod.default),
@@ -45,12 +45,14 @@ const getFilesInDirectoryAndSubdirectories = (path) => __awaiter(void 0, void 0,
45
45
  yield walk(fullPath);
46
46
  }
47
47
  else {
48
- let pathToReplace = path;
48
+ let pathToReplace = pathModule.normalize(path);
49
49
  // Remove the leading './' from the path
50
50
  if (pathToReplace.startsWith('./')) {
51
51
  pathToReplace = pathToReplace.replace('./', '');
52
52
  }
53
53
  let href = fullPath.replace(pathToReplace, '');
54
+ // Replace the backslashes with forward slashes (Windows only)
55
+ href = href.replace(/\\/g, '/');
54
56
  // Remove the leading '/' from the href
55
57
  if (href.startsWith('/')) {
56
58
  href = href.replace('/', '');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@capawesome/cli",
3
- "version": "1.6.2",
3
+ "version": "1.7.0",
4
4
  "description": "The Capawesome Cloud Command Line Interface (CLI) to manage Live Updates and more.",
5
5
  "scripts": {
6
6
  "build": "patch-package && rimraf ./dist && tsc",
@@ -41,15 +41,16 @@
41
41
  ],
42
42
  "dependencies": {
43
43
  "@clack/prompts": "0.7.0",
44
- "@sentry/node": "8.47.0",
44
+ "@sentry/node": "8.55.0",
45
45
  "archiver": "7.0.1",
46
- "axios": "1.7.7",
46
+ "axios": "1.8.4",
47
47
  "c12": "2.0.1",
48
48
  "citty": "0.1.6",
49
49
  "consola": "3.3.0",
50
50
  "form-data": "4.0.1",
51
51
  "rc9": "2.1.2",
52
- "semver": "7.6.3"
52
+ "semver": "7.6.3",
53
+ "systeminformation": "5.25.11"
53
54
  },
54
55
  "devDependencies": {
55
56
  "@ionic/prettier-config": "4.0.0",