@herodevs/cli 0.1.14 → 0.1.16

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
@@ -18,7 +18,7 @@ $ npm install -g @herodevs/cli
18
18
  $ @herodevs/cli COMMAND
19
19
  running command...
20
20
  $ @herodevs/cli (--version)
21
- @herodevs/cli/0.1.14 darwin-arm64 node-v18.17.1
21
+ @herodevs/cli/0.1.16 darwin-arm64 node-v18.17.1
22
22
  $ @herodevs/cli --help [COMMAND]
23
23
  USAGE
24
24
  $ @herodevs/cli COMMAND
@@ -62,7 +62,7 @@ EXAMPLES
62
62
  $ @herodevs/cli committer
63
63
  ```
64
64
 
65
- _See code: [dist/commands/committer/index.ts](https://github.com/herodevs/cli/blob/v0.1.14/dist/commands/committer/index.ts)_
65
+ _See code: [dist/commands/committer/index.ts](https://github.com/herodevs/cli/blob/v0.1.16/dist/commands/committer/index.ts)_
66
66
 
67
67
  ## `@herodevs/cli committer:get-all [flags [-s][-e][-x]]`
68
68
 
@@ -86,7 +86,7 @@ EXAMPLES
86
86
  $ @herodevs/cli committer get-all
87
87
  ```
88
88
 
89
- _See code: [dist/commands/committer/get-all.ts](https://github.com/herodevs/cli/blob/v0.1.14/dist/commands/committer/get-all.ts)_
89
+ _See code: [dist/commands/committer/get-all.ts](https://github.com/herodevs/cli/blob/v0.1.16/dist/commands/committer/get-all.ts)_
90
90
 
91
91
  ## `@herodevs/cli help [COMMANDS]`
92
92
 
@@ -52,7 +52,7 @@ class CommitterGetAll extends shared_1.BaseCommand {
52
52
  });
53
53
  this.log('\n');
54
54
  });
55
- this.log('--------------------------------------------------\n');
55
+ this.log('---------------------------------------------------\n');
56
56
  }
57
57
  async run() {
58
58
  const { flags } = await this.parse(CommitterGetAll);
package/dist/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@herodevs/cli",
3
- "version": "0.1.14",
3
+ "version": "0.1.16",
4
4
  "description": "HeroDevs NES Developer Kit",
5
5
  "author": "@herodevs",
6
6
  "bin": {
@@ -23,7 +23,6 @@
23
23
  "@oclif/core": "^2",
24
24
  "@oclif/plugin-help": "^5",
25
25
  "@oclif/plugin-plugins": "^3.2.0",
26
- "clear-npx-cache": "^1.0.1",
27
26
  "date-fns": "^2.30.0",
28
27
  "module-alias": "^2.2.3",
29
28
  "shelljs": "^0.8.5"
@@ -1,31 +1,11 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.ensureVersionIsUpToDate = exports.isVersionUpToDate = void 0;
4
- const shell_1 = require("./shell");
5
4
  const config_1 = require("../config");
6
5
  const latest_version_1 = require("@badisi/latest-version");
7
6
  const enums_1 = require("../enums");
8
7
  const red = (0, enums_1.color)("\u001B[31m" /* Color.FgRed */);
9
8
  const yellow = (0, enums_1.color)("\u001B[33m" /* Color.FgYellow */);
10
- const green = (0, enums_1.color)("\u001B[32m" /* Color.FgGreen */);
11
- async function wrapCommandToHandleDebugging(command, message, commandInstance) {
12
- let result = '';
13
- try {
14
- result = await (0, shell_1.run)(command);
15
- }
16
- catch (ex) {
17
- console.info('EX', ex);
18
- // if command fails because debugger is attached, log the message
19
- if (!!~ex.toString().toLowerCase().indexOf('debugger attached')) {
20
- commandInstance.log(message);
21
- }
22
- else {
23
- commandInstance.log(command);
24
- commandInstance.error(ex);
25
- }
26
- }
27
- return result;
28
- }
29
9
  function reconstituteCommandPositionalsAndFlags(command) {
30
10
  var _a;
31
11
  return [
@@ -35,7 +15,7 @@ function reconstituteCommandPositionalsAndFlags(command) {
35
15
  }
36
16
  async function isVersionUpToDate(command, quietIfSuccessful = false) {
37
17
  const versionData = await (0, latest_version_1.default)(config_1.env.packageName);
38
- if (versionData && versionData.latest && versionData.latest === '') { //env.packageVersion) {
18
+ if (versionData && versionData.latest && versionData.latest === config_1.env.packageVersion) {
39
19
  if (!quietIfSuccessful) {
40
20
  command.log(`${config_1.env.packageName}@${versionData.latest} is up to date`);
41
21
  }
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "0.1.14",
2
+ "version": "0.1.16",
3
3
  "commands": {
4
4
  "committer:get-all": {
5
5
  "id": "committer:get-all",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@herodevs/cli",
3
- "version": "0.1.14",
3
+ "version": "0.1.16",
4
4
  "description": "HeroDevs NES Developer Kit",
5
5
  "author": "@herodevs",
6
6
  "bin": {
@@ -23,7 +23,6 @@
23
23
  "@oclif/core": "^2",
24
24
  "@oclif/plugin-help": "^5",
25
25
  "@oclif/plugin-plugins": "^3.2.0",
26
- "clear-npx-cache": "^1.0.1",
27
26
  "date-fns": "^2.30.0",
28
27
  "module-alias": "^2.2.3",
29
28
  "shelljs": "^0.8.5"