@beecode/msh-cli 2.1.0 → 2.1.2

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 (125) hide show
  1. package/dist/controller/cli-menu/main-menu.d.ts.map +1 -1
  2. package/dist/controller/cli-menu/main-menu.js +3 -2
  3. package/dist/controller/yargs-router/cli-router.d.ts +1 -1
  4. package/dist/controller/yargs-router/cli-router.d.ts.map +1 -1
  5. package/dist/controller/yargs-router/cli-router.js +1 -1
  6. package/dist/controller/yargs-router/git-router.d.ts +1 -1
  7. package/dist/controller/yargs-router/git-router.d.ts.map +1 -1
  8. package/dist/controller/yargs-router/git-router.js +1 -1
  9. package/dist/controller/yargs-router/npm-router.d.ts +1 -1
  10. package/dist/controller/yargs-router/npm-router.d.ts.map +1 -1
  11. package/dist/controller/yargs-router/npm-router.js +1 -1
  12. package/dist/dal/shell-dal.d.ts.map +1 -1
  13. package/dist/dal/shell-dal.js +2 -2
  14. package/dist/index-cli.js +9 -4
  15. package/dist/index-init.js +7 -3
  16. package/dist/index-server.js +8 -3
  17. package/dist/index-terminal-ui.js +8 -3
  18. package/dist/model/command/init-config.d.ts +1 -1
  19. package/dist/model/command/init-config.d.ts.map +1 -1
  20. package/dist/model/command/init-config.js +2 -1
  21. package/dist/model/command/project-command/git-clone-project-command.d.ts +1 -1
  22. package/dist/model/command/project-command/git-clone-project-command.d.ts.map +1 -1
  23. package/dist/model/command/project-command/git-clone-project-command.js +2 -1
  24. package/dist/model/command/project-command/git-simple-project-command.d.ts +1 -1
  25. package/dist/model/command/project-command/git-simple-project-command.d.ts.map +1 -1
  26. package/dist/model/command/project-command/git-simple-project-command.js +2 -1
  27. package/dist/model/command/project-command/git-tag-project-command.d.ts +1 -1
  28. package/dist/model/command/project-command/git-tag-project-command.d.ts.map +1 -1
  29. package/dist/model/command/project-command/git-tag-project-command.js +2 -1
  30. package/dist/model/command/project-command/npm-global-project-command.d.ts +1 -1
  31. package/dist/model/command/project-command/npm-global-project-command.d.ts.map +1 -1
  32. package/dist/model/command/project-command/npm-global-project-command.js +4 -2
  33. package/dist/model/command/project-command/npm-install-project-command.d.ts +1 -1
  34. package/dist/model/command/project-command/npm-install-project-command.d.ts.map +1 -1
  35. package/dist/model/command/project-command/npm-install-project-command.js +2 -1
  36. package/dist/model/command/project-command/project-command.d.ts +2 -2
  37. package/dist/model/command/project-command/project-command.d.ts.map +1 -1
  38. package/dist/model/command/project-command/project-command.js +1 -1
  39. package/dist/service/init-config-service.d.ts.map +1 -1
  40. package/dist/service/shell-service.d.ts +1 -1
  41. package/dist/service/shell-service.d.ts.map +1 -1
  42. package/dist/service/shell-service.js +7 -4
  43. package/dist/service/terminal-wrapper.d.ts +1 -1
  44. package/dist/service/terminal-wrapper.d.ts.map +1 -1
  45. package/dist/service/terminal-wrapper.js +1 -1
  46. package/dist/util/base-menu.d.ts +1 -2
  47. package/dist/util/base-menu.d.ts.map +1 -1
  48. package/dist/util/base-menu.js +2 -1
  49. package/dist/util/constant.d.ts +2 -2
  50. package/dist/util/constant.d.ts.map +1 -1
  51. package/dist/util/constant.js +2 -3
  52. package/dist/util/object-util.d.ts.map +1 -1
  53. package/dist/util/object-util.js +2 -1
  54. package/dist/util/sub-menu.d.ts +1 -1
  55. package/dist/util/sub-menu.d.ts.map +1 -1
  56. package/dist/util/sub-menu.js +3 -2
  57. package/dist/util/update-notifier-util.d.ts +1 -1
  58. package/dist/util/update-notifier-util.d.ts.map +1 -1
  59. package/dist/util/update-notifier-util.js +3 -4
  60. package/lib/app/cli-app.js +8 -8
  61. package/lib/app/http-server-app.js +8 -8
  62. package/lib/app/init/parse-and-route-args.js +12 -12
  63. package/lib/app/tui-app.js +8 -8
  64. package/lib/controller/cli-menu/main-menu.d.ts.map +1 -1
  65. package/lib/controller/cli-menu/main-menu.js +13 -12
  66. package/lib/controller/yargs-router/cli-router.d.ts +1 -1
  67. package/lib/controller/yargs-router/cli-router.d.ts.map +1 -1
  68. package/lib/controller/yargs-router/cli-router.js +11 -11
  69. package/lib/controller/yargs-router/git-router.d.ts +1 -1
  70. package/lib/controller/yargs-router/git-router.d.ts.map +1 -1
  71. package/lib/controller/yargs-router/git-router.js +10 -10
  72. package/lib/controller/yargs-router/npm-router.d.ts +1 -1
  73. package/lib/controller/yargs-router/npm-router.d.ts.map +1 -1
  74. package/lib/controller/yargs-router/npm-router.js +7 -7
  75. package/lib/dal/shell-dal.d.ts.map +1 -1
  76. package/lib/dal/shell-dal.js +2 -2
  77. package/lib/index-cli.js +8 -7
  78. package/lib/index-init.js +2 -2
  79. package/lib/index-server.js +7 -3
  80. package/lib/index-terminal-ui.js +7 -3
  81. package/lib/model/command/init-config.d.ts +1 -1
  82. package/lib/model/command/init-config.d.ts.map +1 -1
  83. package/lib/model/command/init-config.js +6 -6
  84. package/lib/model/command/project-command/git-clone-project-command.d.ts +1 -1
  85. package/lib/model/command/project-command/git-clone-project-command.d.ts.map +1 -1
  86. package/lib/model/command/project-command/git-clone-project-command.js +6 -6
  87. package/lib/model/command/project-command/git-simple-project-command.d.ts +1 -1
  88. package/lib/model/command/project-command/git-simple-project-command.d.ts.map +1 -1
  89. package/lib/model/command/project-command/git-simple-project-command.js +6 -6
  90. package/lib/model/command/project-command/git-tag-project-command.d.ts +1 -1
  91. package/lib/model/command/project-command/git-tag-project-command.d.ts.map +1 -1
  92. package/lib/model/command/project-command/git-tag-project-command.js +6 -6
  93. package/lib/model/command/project-command/npm-global-project-command.d.ts +1 -1
  94. package/lib/model/command/project-command/npm-global-project-command.d.ts.map +1 -1
  95. package/lib/model/command/project-command/npm-global-project-command.js +16 -15
  96. package/lib/model/command/project-command/npm-install-project-command.d.ts +1 -1
  97. package/lib/model/command/project-command/npm-install-project-command.d.ts.map +1 -1
  98. package/lib/model/command/project-command/npm-install-project-command.js +7 -7
  99. package/lib/model/command/project-command/project-command.d.ts +2 -2
  100. package/lib/model/command/project-command/project-command.d.ts.map +1 -1
  101. package/lib/model/command/project-command/project-command.js +7 -7
  102. package/lib/service/init-config-service.d.ts.map +1 -1
  103. package/lib/service/init-config-service.js +4 -4
  104. package/lib/service/shell-service.d.ts +1 -1
  105. package/lib/service/shell-service.d.ts.map +1 -1
  106. package/lib/service/shell-service.js +7 -8
  107. package/lib/service/terminal-wrapper.d.ts +1 -1
  108. package/lib/service/terminal-wrapper.d.ts.map +1 -1
  109. package/lib/service/terminal-wrapper.js +13 -13
  110. package/lib/util/base-menu.d.ts +1 -2
  111. package/lib/util/base-menu.d.ts.map +1 -1
  112. package/lib/util/base-menu.js +16 -15
  113. package/lib/util/config.js +1 -1
  114. package/lib/util/constant.d.ts +2 -2
  115. package/lib/util/constant.d.ts.map +1 -1
  116. package/lib/util/constant.js +1 -3
  117. package/lib/util/object-util.d.ts.map +1 -1
  118. package/lib/util/object-util.js +1 -0
  119. package/lib/util/sub-menu.d.ts +1 -1
  120. package/lib/util/sub-menu.d.ts.map +1 -1
  121. package/lib/util/sub-menu.js +18 -15
  122. package/lib/util/update-notifier-util.d.ts +1 -1
  123. package/lib/util/update-notifier-util.d.ts.map +1 -1
  124. package/lib/util/update-notifier-util.js +6 -24
  125. package/package.json +47 -48
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@beecode/msh-cli",
3
- "version": "2.1.0",
3
+ "version": "2.1.2",
4
4
  "description": "MicroService Shell helper",
5
5
  "keywords": [
6
6
  "shell",
@@ -26,17 +26,17 @@
26
26
  },
27
27
  "exports": {
28
28
  ".": {
29
+ "types": "./dist/index.d.ts",
29
30
  "import": "./dist/index.js",
30
- "require": "./lib/index.js",
31
- "types": "./dist/index.d.ts"
31
+ "require": "./lib/index.js"
32
32
  },
33
33
  "./*": {
34
- "import": "./dist/*.js",
35
- "types": "./dist/*.d.ts"
34
+ "types": "./dist/*.d.ts",
35
+ "import": "./dist/*.js"
36
36
  },
37
37
  "./lib/*": {
38
- "require": "./lib/*.js",
39
- "types": "./lib/*.d.ts"
38
+ "types": "./lib/*.d.ts",
39
+ "require": "./lib/*.js"
40
40
  }
41
41
  },
42
42
  "main": "./lib/index.js",
@@ -61,7 +61,7 @@
61
61
  "doc:toc": "npx markdown-toc -i ./README.md",
62
62
  "docker-build": "docker build -f ./resource/docker/Dockerfile -t bc-msh-cli ./",
63
63
  "docker-rmi": "docker rmi bc-msh-cli",
64
- "docker-run-package-lock-update": "docker run --rm -v ./:/usr/app/ milosbugarinovic/msh-lib-base:node20.12.2-alpine3.19 npm i --package-lock-only",
64
+ "docker-run-package-lock-update": "docker run --rm -v ./:/usr/app/ milosbugarinovic/msh-lib-base:node22.14.0-alpine3.21 npm i --package-lock-only",
65
65
  "docker-run-sh": "docker run --rm -it bc-msh-cli sh",
66
66
  "fix-hybrid-lib-cjs": "mkdir -p ./lib && echo '{\"type\": \"commonjs\"}' > ./lib/package.json",
67
67
  "init": "concurrently -c auto 'npm:init:*'",
@@ -72,7 +72,7 @@
72
72
  "lint-eslint-fix": "npm run lint-eslint -- --fix",
73
73
  "lint-fix": "npm run lint-prettier-fix && npm run lint-eslint-fix && npm run lint-json-fix",
74
74
  "lint-json": "npm run lint-json-fix -- -c",
75
- "lint-json-fix": "jsonsort * .*.json '!./dist' '!./lib' '!./test/node_modules' '!./resource' '!**/.env*' '!**/.gitignore' -t",
75
+ "lint-json-fix": "jsonsort -p * .*.json '!./dist' '!./lib' '!./test/node_modules' '!./resource' '!**/.env*' '!**/.gitignore' -t",
76
76
  "lint-prettier": "prettier --check {**/*,*}.{js,jsx,ts,tsx}",
77
77
  "lint-prettier-fix": "prettier --write {**/*,*}.{js,jsx,ts,tsx}",
78
78
  "npm-bump-version": "npm --no-git-tag-version version",
@@ -119,65 +119,64 @@
119
119
  }
120
120
  },
121
121
  "dependencies": {
122
- "@beecode/msh-app-boot": "1.1.0",
123
- "@beecode/msh-config": "1.1.0",
124
- "@beecode/msh-env": "1.1.0",
125
- "@beecode/msh-logger": "1.1.0",
126
- "@beecode/msh-util": "2.0.8",
122
+ "@beecode/msh-app-boot": "1.1.2",
123
+ "@beecode/msh-config": "1.1.4",
124
+ "@beecode/msh-env": "1.1.1",
125
+ "@beecode/msh-logger": "1.1.2",
126
+ "@beecode/msh-util": "2.0.12",
127
127
  "async-shelljs": "0.1.4",
128
- "chalk": "5.3.0",
129
- "compare-versions": "6.1.0",
130
- "dotenv": "16.4.5",
128
+ "chalk": "5.4.1",
129
+ "compare-versions": "6.1.1",
130
+ "dotenv": "16.4.7",
131
131
  "fast-json-stable-stringify": "2.1.0",
132
- "inquirer": "9.2.20",
132
+ "inquirer": "12.5.0",
133
133
  "lodash": "4.17.21",
134
134
  "minimist": "1.2.8",
135
135
  "minimist-options": "4.1.0",
136
136
  "mz": "2.7.0",
137
137
  "request": "2.88.2",
138
138
  "request-promise-native": "1.0.9",
139
- "update-notifier": "7.0.0",
139
+ "update-notifier": "7.3.1",
140
140
  "yargs": "17.7.2"
141
141
  },
142
142
  "devDependencies": {
143
- "@babel/cli": "7.24.5",
144
- "@babel/core": "7.24.5",
145
- "@babel/plugin-proposal-decorators": "7.24.1",
146
- "@babel/plugin-syntax-import-attributes": "7.24.1",
147
- "@babel/plugin-transform-modules-commonjs": "7.24.1",
148
- "@babel/preset-env": "7.24.5",
149
- "@babel/preset-typescript": "7.24.1",
150
- "@commitlint/cli": "19.3.0",
151
- "@commitlint/config-conventional": "19.2.2",
152
- "@commitlint/prompt": "19.3.0",
153
- "@types/inquirer": "9.0.7",
154
- "@types/lodash": "4.17.1",
143
+ "@babel/cli": "7.26.4",
144
+ "@babel/core": "7.26.10",
145
+ "@babel/plugin-proposal-decorators": "7.25.9",
146
+ "@babel/plugin-syntax-import-attributes": "7.26.0",
147
+ "@babel/plugin-transform-modules-commonjs": "7.26.3",
148
+ "@babel/preset-env": "7.26.9",
149
+ "@babel/preset-typescript": "7.26.0",
150
+ "@commitlint/cli": "19.8.0",
151
+ "@commitlint/config-conventional": "19.8.0",
152
+ "@commitlint/prompt": "19.8.0",
153
+ "@types/lodash": "4.17.16",
155
154
  "@types/minimist": "1.2.5",
156
155
  "@types/mz": "2.7.8",
157
- "@types/node": "20.12.10",
156
+ "@types/node": "22.13.11",
158
157
  "@types/request": "2.48.12",
159
158
  "@types/shelljs": "0.8.15",
160
159
  "@types/update-notifier": "6.0.8",
161
- "@types/yargs": "17.0.32",
162
- "@vitest/coverage-v8": "1.6.0",
163
- "commitizen": "4.3.0",
164
- "concurrently": "8.2.2",
165
- "husky": "9.0.11",
166
- "json-sort-cli": "4.0.3",
167
- "lint-staged": "15.2.2",
160
+ "@types/yargs": "17.0.33",
161
+ "@vitest/coverage-v8": "3.0.9",
162
+ "commitizen": "4.3.1",
163
+ "concurrently": "9.1.2",
164
+ "husky": "9.1.7",
165
+ "json-sort-cli": "4.0.9",
166
+ "lint-staged": "15.5.0",
168
167
  "markdown-toc": "1.2.0",
169
- "prettier": "3.2.5",
170
- "rimraf": "5.0.5",
168
+ "prettier": "3.5.3",
169
+ "rimraf": "6.0.1",
171
170
  "source-map-support": "0.5.21",
172
171
  "ts-cleaner": "1.0.5",
173
172
  "ts-node": "10.9.2",
174
- "tsc-alias": "1.8.8",
175
- "tsc-watch": "6.2.0",
176
- "typedoc": "0.25.13",
177
- "typedoc-plugin-markdown": "4.0.1",
178
- "typescript": "5.4.5",
179
- "vite-tsconfig-paths": "4.3.2",
180
- "vitest": "1.6.0"
173
+ "tsc-alias": "1.8.11",
174
+ "tsc-watch": "6.2.1",
175
+ "typedoc": "0.28.1",
176
+ "typedoc-plugin-markdown": "4.5.2",
177
+ "typescript": "5.7.3",
178
+ "vite-tsconfig-paths": "5.1.4",
179
+ "vitest": "3.0.9"
181
180
  },
182
181
  "engines": {
183
182
  "node": ">=20.8.1",