nativescript 9.1.0-alpha.14 → 9.1.0-alpha.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.
Files changed (344) hide show
  1. package/docs/build-jekyll-md.sh +1 -1
  2. package/docs/man_pages/config/config-set.md +2 -0
  3. package/lib/android-tools-info.js +0 -12
  4. package/lib/base-package-manager.js +0 -7
  5. package/lib/bootstrap.js +1 -5
  6. package/lib/bun-package-manager.js +1 -14
  7. package/lib/color.js +0 -4
  8. package/lib/commands/add-platform.js +0 -1
  9. package/lib/commands/apple-login.js +0 -1
  10. package/lib/commands/appstore-list.js +0 -1
  11. package/lib/commands/appstore-upload.js +0 -3
  12. package/lib/commands/build.js +3 -3
  13. package/lib/commands/clean.js +1 -22
  14. package/lib/commands/command-base.js +0 -1
  15. package/lib/commands/config.js +0 -5
  16. package/lib/commands/create-project.js +0 -6
  17. package/lib/commands/debug.js +2 -6
  18. package/lib/commands/deploy.js +3 -3
  19. package/lib/commands/embedding/embed.js +0 -7
  20. package/lib/commands/extensibility/install-extension.js +0 -1
  21. package/lib/commands/extensibility/list-extensions.js +0 -1
  22. package/lib/commands/extensibility/uninstall-extension.js +0 -1
  23. package/lib/commands/fonts.js +0 -1
  24. package/lib/commands/generate-assets.js +0 -1
  25. package/lib/commands/generate-help.js +0 -1
  26. package/lib/commands/generate.js +1 -48
  27. package/lib/commands/hooks/common.js +1 -2
  28. package/lib/commands/hooks/hooks-lock.js +0 -1
  29. package/lib/commands/hooks/hooks.js +0 -1
  30. package/lib/commands/info.js +0 -1
  31. package/lib/commands/install.js +0 -1
  32. package/lib/commands/list-platforms.js +0 -1
  33. package/lib/commands/migrate.js +0 -1
  34. package/lib/commands/native-add.js +0 -5
  35. package/lib/commands/platform-clean.js +0 -1
  36. package/lib/commands/plugin/add-plugin.js +0 -1
  37. package/lib/commands/plugin/build-plugin.js +0 -1
  38. package/lib/commands/plugin/create-plugin.js +0 -5
  39. package/lib/commands/plugin/list-plugins.js +0 -1
  40. package/lib/commands/plugin/remove-plugin.js +0 -2
  41. package/lib/commands/plugin/update-plugin.js +0 -1
  42. package/lib/commands/post-install.js +0 -6
  43. package/lib/commands/prepare.js +5 -5
  44. package/lib/commands/preview.js +0 -2
  45. package/lib/commands/remove-platform.js +0 -1
  46. package/lib/commands/resources/resources-update.js +0 -2
  47. package/lib/commands/run.js +0 -1
  48. package/lib/commands/setup.js +0 -1
  49. package/lib/commands/start.js +0 -1
  50. package/lib/commands/test-init.js +0 -4
  51. package/lib/commands/test.js +3 -9
  52. package/lib/commands/typings.js +1 -2
  53. package/lib/commands/update-platform.js +0 -5
  54. package/lib/commands/update.js +0 -2
  55. package/lib/commands/widget.js +0 -18
  56. package/lib/common/bootstrap.js +0 -1
  57. package/lib/common/child-process.js +0 -3
  58. package/lib/common/codeGeneration/code-entity.js +0 -1
  59. package/lib/common/codeGeneration/code-printer.js +0 -1
  60. package/lib/common/command-params.js +0 -1
  61. package/lib/common/commands/analytics.js +0 -3
  62. package/lib/common/commands/autocompletion.js +0 -3
  63. package/lib/common/commands/device/device-log-stream.js +0 -1
  64. package/lib/common/commands/device/get-file.js +0 -2
  65. package/lib/common/commands/device/list-applications.js +0 -1
  66. package/lib/common/commands/device/list-devices.js +0 -3
  67. package/lib/common/commands/device/list-files.js +0 -2
  68. package/lib/common/commands/device/put-file.js +0 -2
  69. package/lib/common/commands/device/run-application.js +0 -1
  70. package/lib/common/commands/device/stop-application.js +0 -1
  71. package/lib/common/commands/device/uninstall-application.js +0 -1
  72. package/lib/common/commands/doctor.js +3 -3
  73. package/lib/common/commands/generate-messages.js +0 -1
  74. package/lib/common/commands/help.js +0 -1
  75. package/lib/common/commands/package-manager-get.js +0 -1
  76. package/lib/common/commands/package-manager-set.js +0 -1
  77. package/lib/common/commands/post-install.js +0 -1
  78. package/lib/common/commands/preuninstall.js +2 -11
  79. package/lib/common/commands/proxy/proxy-base.js +0 -4
  80. package/lib/common/commands/proxy/proxy-clear.js +0 -1
  81. package/lib/common/commands/proxy/proxy-get.js +0 -1
  82. package/lib/common/commands/proxy/proxy-set.js +0 -1
  83. package/lib/common/common-lib.js +0 -1
  84. package/lib/common/constants.js +14 -12
  85. package/lib/common/declarations.d.ts +37 -117
  86. package/lib/common/decorators.js +0 -48
  87. package/lib/common/definitions/key-commands.js +8 -0
  88. package/lib/common/dispatchers.js +1 -10
  89. package/lib/common/enums.js +42 -0
  90. package/lib/common/errors.js +4 -13
  91. package/lib/common/file-system.js +2 -13
  92. package/lib/common/header.js +0 -3
  93. package/lib/common/helpers.js +3 -89
  94. package/lib/common/host-info.js +0 -4
  95. package/lib/common/http-client.js +0 -20
  96. package/lib/common/logger/appenders/cli-appender.js +0 -4
  97. package/lib/common/logger/appenders/emit-appender.js +0 -4
  98. package/lib/common/logger/layouts/cli-layout.js +0 -1
  99. package/lib/common/logger/logger.js +0 -5
  100. package/lib/common/messages/messages.js +0 -6
  101. package/lib/common/mobile/android/android-application-manager.js +1 -20
  102. package/lib/common/mobile/android/android-debug-bridge-result-handler.js +0 -1
  103. package/lib/common/mobile/android/android-debug-bridge.js +0 -6
  104. package/lib/common/mobile/android/android-device-file-system.js +0 -4
  105. package/lib/common/mobile/android/android-device-hash-service.js +0 -3
  106. package/lib/common/mobile/android/android-device.js +0 -8
  107. package/lib/common/mobile/android/android-emulator-services.js +1 -2
  108. package/lib/common/mobile/android/android-ini-file-parser.js +0 -9
  109. package/lib/common/mobile/android/android-log-filter.js +0 -4
  110. package/lib/common/mobile/android/android-virtual-device-service.js +0 -26
  111. package/lib/common/mobile/android/device-android-debug-bridge.js +0 -1
  112. package/lib/common/mobile/android/genymotion/genymotion-service.js +1 -6
  113. package/lib/common/mobile/android/genymotion/virtualbox-service.js +0 -11
  114. package/lib/common/mobile/android/logcat-helper.js +0 -13
  115. package/lib/common/mobile/application-manager-base.js +0 -6
  116. package/lib/common/mobile/device-emitter.js +0 -4
  117. package/lib/common/mobile/device-log-emitter.js +0 -1
  118. package/lib/common/mobile/device-log-provider-base.js +0 -1
  119. package/lib/common/mobile/device-log-provider.js +0 -23
  120. package/lib/common/mobile/device-platforms-constants.js +0 -1
  121. package/lib/common/mobile/emulator-helper.js +0 -3
  122. package/lib/common/mobile/ios/device/ios-application-manager.js +0 -3
  123. package/lib/common/mobile/ios/device/ios-device-file-system.js +0 -9
  124. package/lib/common/mobile/ios/device/ios-device-operations.js +0 -4
  125. package/lib/common/mobile/ios/device/ios-device.js +0 -4
  126. package/lib/common/mobile/ios/ios-device-base.js +0 -1
  127. package/lib/common/mobile/ios/ios-device-product-name-mapper.js +0 -2
  128. package/lib/common/mobile/ios/ios-log-filter.js +0 -1
  129. package/lib/common/mobile/ios/simulator/ios-emulator-services.js +0 -4
  130. package/lib/common/mobile/ios/simulator/ios-sim-resolver.js +0 -1
  131. package/lib/common/mobile/ios/simulator/ios-simulator-application-manager.js +0 -6
  132. package/lib/common/mobile/ios/simulator/ios-simulator-device.js +0 -5
  133. package/lib/common/mobile/ios/simulator/ios-simulator-file-system.js +0 -1
  134. package/lib/common/mobile/ios/simulator/ios-simulator-log-provider.js +0 -1
  135. package/lib/common/mobile/local-to-device-path-data-factory.js +0 -1
  136. package/lib/common/mobile/log-filter.js +0 -2
  137. package/lib/common/mobile/logging-levels.js +0 -1
  138. package/lib/common/mobile/mobile-core/android-device-discovery.js +0 -2
  139. package/lib/common/mobile/mobile-core/android-emulator-discovery.js +0 -3
  140. package/lib/common/mobile/mobile-core/android-process-service.js +0 -32
  141. package/lib/common/mobile/mobile-core/device-discovery.js +0 -1
  142. package/lib/common/mobile/mobile-core/devices-service.js +0 -69
  143. package/lib/common/mobile/mobile-core/ios-device-discovery.js +0 -2
  144. package/lib/common/mobile/mobile-core/ios-simulator-discovery.js +0 -3
  145. package/lib/common/mobile/mobile-helper.js +0 -1
  146. package/lib/common/mobile/wp8/wp8-emulator-services.js +0 -1
  147. package/lib/common/opener.js +0 -1
  148. package/lib/common/os-info.js +0 -1
  149. package/lib/common/plist-parser.js +0 -1
  150. package/lib/common/project-helper.js +0 -1
  151. package/lib/common/prompter.js +1 -9
  152. package/lib/common/queue.js +0 -1
  153. package/lib/common/resource-loader.js +0 -1
  154. package/lib/common/services/analytics/google-analytics-custom-dimensions.js +13 -0
  155. package/lib/common/services/auto-completion-service.js +1 -13
  156. package/lib/common/services/cancellation.js +2 -2
  157. package/lib/common/services/commands-service.js +8 -17
  158. package/lib/common/services/help-service.js +4 -11
  159. package/lib/common/services/hooks-service.js +0 -13
  160. package/lib/common/services/ios-notification-service.js +0 -1
  161. package/lib/common/services/json-file-settings-service.js +0 -6
  162. package/lib/common/services/lock-service.js +0 -6
  163. package/lib/common/services/message-contract-generator.js +0 -1
  164. package/lib/common/services/messages-service.js +0 -1
  165. package/lib/common/services/micro-templating-service.js +0 -6
  166. package/lib/common/services/net-service.js +0 -3
  167. package/lib/common/services/project-files-manager.js +0 -5
  168. package/lib/common/services/project-files-provider-base.js +0 -1
  169. package/lib/common/services/proxy-service.js +0 -1
  170. package/lib/common/services/qr.js +0 -1
  171. package/lib/common/services/settings-service.js +0 -1
  172. package/lib/common/services/xcode-select-service.js +0 -1
  173. package/lib/common/utils.js +0 -1
  174. package/lib/common/validators/project-name-validator.js +0 -1
  175. package/lib/common/validators/validation-result.js +0 -1
  176. package/lib/common/verify-node-version.js +2 -8
  177. package/lib/common/yok.js +12 -32
  178. package/lib/config.js +1 -22
  179. package/lib/constants-provider.js +0 -1
  180. package/lib/constants.js +54 -58
  181. package/lib/controllers/build-controller.js +3 -4
  182. package/lib/controllers/debug-controller.js +3 -8
  183. package/lib/controllers/deploy-controller.js +0 -1
  184. package/lib/controllers/migrate-controller.js +4 -90
  185. package/lib/controllers/platform-controller.js +2 -9
  186. package/lib/controllers/prepare-controller.js +8 -24
  187. package/lib/controllers/run-controller.js +1 -81
  188. package/lib/controllers/update-controller-base.js +0 -1
  189. package/lib/controllers/update-controller.js +0 -11
  190. package/lib/data/build-data.js +0 -1
  191. package/lib/data/controller-data-base.js +0 -1
  192. package/lib/data/debug-data.js +0 -1
  193. package/lib/data/platform-data.js +0 -1
  194. package/lib/data/prepare-data.js +0 -1
  195. package/lib/data/run-data.js +0 -1
  196. package/lib/definitions/project.d.ts +1 -6
  197. package/lib/definitions/system-warnings.js +8 -0
  198. package/lib/detached-processes/cleanup-js-subprocess.js +3 -8
  199. package/lib/detached-processes/cleanup-process.js +15 -18
  200. package/lib/detached-processes/detached-process-enums.js +24 -0
  201. package/lib/detached-processes/file-log-service.js +2 -2
  202. package/lib/device-path-provider.js +0 -1
  203. package/lib/device-sockets/ios/app-debug-socket-proxy-factory.js +0 -7
  204. package/lib/device-sockets/ios/notification.js +0 -3
  205. package/lib/device-sockets/ios/socket-request-executor.js +0 -3
  206. package/lib/helpers/android-bundle-validator-helper.js +1 -2
  207. package/lib/helpers/deploy-command-helper.js +0 -1
  208. package/lib/helpers/key-command-helper.js +3 -4
  209. package/lib/helpers/livesync-command-helper.js +2 -4
  210. package/lib/helpers/network-connectivity-validator.js +0 -1
  211. package/lib/helpers/options-track-helper.js +4 -3
  212. package/lib/helpers/package-path-helper.js +0 -1
  213. package/lib/helpers/platform-command-helper.js +2 -7
  214. package/lib/helpers/version-validator-helper.js +0 -1
  215. package/lib/key-commands/bootstrap.js +3 -3
  216. package/lib/key-commands/index.js +5 -5
  217. package/lib/nativescript-cli-lib-bootstrap.js +0 -4
  218. package/lib/nativescript-cli-lib.js +0 -1
  219. package/lib/nativescript-cli.js +2 -11
  220. package/lib/node/pbxproj-dom-xcode.js +0 -1
  221. package/lib/node/xcode.js +0 -1
  222. package/lib/node-package-manager.js +1 -11
  223. package/lib/options.js +121 -145
  224. package/lib/package-installation-manager.js +1 -8
  225. package/lib/package-manager.js +0 -2
  226. package/lib/platform-command-param.js +0 -1
  227. package/lib/pnpm-package-manager.js +1 -4
  228. package/lib/project-data.js +0 -12
  229. package/lib/providers/project-files-provider.js +0 -1
  230. package/lib/resolvers/livesync-service-resolver.js +0 -1
  231. package/lib/services/analytics/analytics-broker-process.js +8 -10
  232. package/lib/services/analytics/analytics-broker.js +2 -2
  233. package/lib/services/analytics/analytics-service.js +29 -29
  234. package/lib/services/analytics/google-analytics-provider.js +16 -13
  235. package/lib/services/analytics-settings-service.js +0 -5
  236. package/lib/services/android/android-bundle-tool-service.js +0 -1
  237. package/lib/services/android/gradle-build-args-service.js +0 -3
  238. package/lib/services/android/gradle-build-service.js +0 -1
  239. package/lib/services/android/gradle-command-service.js +0 -1
  240. package/lib/services/android-device-debug-service.js +0 -6
  241. package/lib/services/android-plugin-build-service.js +2 -31
  242. package/lib/services/android-project-service.js +4 -71
  243. package/lib/services/android-resources-migration-service.js +0 -7
  244. package/lib/services/apple-portal/apple-portal-application-service.js +0 -1
  245. package/lib/services/apple-portal/apple-portal-cookie-service.js +0 -1
  246. package/lib/services/apple-portal/apple-portal-session-service.js +4 -6
  247. package/lib/services/apple-portal/srp/srp-wrapper.js +1 -4
  248. package/lib/services/assets-generation/assets-generation-service.js +13 -11
  249. package/lib/services/build-artifacts-service.js +1 -2
  250. package/lib/services/build-data-service.js +0 -1
  251. package/lib/services/build-info-file-service.js +0 -1
  252. package/lib/services/bundler/bundler-compiler-service.js +26 -157
  253. package/lib/services/bundler/bundler.js +0 -1
  254. package/lib/services/cleanup-service.js +10 -13
  255. package/lib/services/cocoapods-platform-manager.js +0 -9
  256. package/lib/services/cocoapods-service.js +1 -21
  257. package/lib/services/debug-data-service.js +0 -1
  258. package/lib/services/debug-service-base.js +0 -7
  259. package/lib/services/device/device-install-app-service.js +1 -2
  260. package/lib/services/doctor-service.js +6 -21
  261. package/lib/services/extensibility-service.js +0 -8
  262. package/lib/services/files-hash-service.js +0 -1
  263. package/lib/services/hmr-status-service.js +0 -2
  264. package/lib/services/info-service.js +0 -1
  265. package/lib/services/initialize-service.js +2 -5
  266. package/lib/services/ios/export-options-plist-service.js +0 -4
  267. package/lib/services/ios/ios-signing-service.js +0 -4
  268. package/lib/services/ios/spm-service.js +10 -120
  269. package/lib/services/ios/xcodebuild-args-service.js +0 -29
  270. package/lib/services/ios/xcodebuild-command-service.js +0 -3
  271. package/lib/services/ios/xcodebuild-service.js +1 -2
  272. package/lib/services/ios-debugger-port-service.js +0 -1
  273. package/lib/services/ios-device-debug-service.js +0 -1
  274. package/lib/services/ios-entitlements-service.js +0 -1
  275. package/lib/services/ios-extensions-service.js +0 -1
  276. package/lib/services/ios-log-filter.js +0 -20
  277. package/lib/services/ios-native-target-service.js +5 -6
  278. package/lib/services/ios-project-service.js +7 -133
  279. package/lib/services/ios-provision-service.js +0 -3
  280. package/lib/services/ios-watch-app-service.js +10 -60
  281. package/lib/services/ip-service.js +0 -2
  282. package/lib/services/itmstransporter-service.js +0 -1
  283. package/lib/services/karma-execution.js +0 -2
  284. package/lib/services/livesync/android-device-livesync-service-base.js +0 -1
  285. package/lib/services/livesync/android-device-livesync-service.js +0 -2
  286. package/lib/services/livesync/android-device-livesync-sockets-service.js +0 -3
  287. package/lib/services/livesync/android-livesync-service.js +0 -1
  288. package/lib/services/livesync/android-livesync-tool.js +0 -4
  289. package/lib/services/livesync/device-livesync-service-base.js +0 -2
  290. package/lib/services/livesync/ios-device-livesync-service.js +0 -7
  291. package/lib/services/livesync/ios-livesync-service.js +0 -55
  292. package/lib/services/livesync/livesync-socket.js +0 -1
  293. package/lib/services/livesync/platform-livesync-service-base.js +0 -5
  294. package/lib/services/livesync-process-data-service.js +0 -1
  295. package/lib/services/log-parser-service.js +0 -1
  296. package/lib/services/log-source-map-service.js +0 -15
  297. package/lib/services/marking-mode-service.js +10 -8
  298. package/lib/services/metadata-filtering-service.js +0 -1
  299. package/lib/services/npm-config-service.js +0 -4
  300. package/lib/services/pacote-service.js +0 -7
  301. package/lib/services/performance-service.js +2 -3
  302. package/lib/services/platform/add-platform-service.js +2 -49
  303. package/lib/services/platform/platform-validation-service.js +0 -1
  304. package/lib/services/platform/prepare-native-platform-service.js +3 -5
  305. package/lib/services/platform-environment-requirements.js +4 -8
  306. package/lib/services/platform-project-service-base.js +0 -1
  307. package/lib/services/platforms-data-service.js +0 -1
  308. package/lib/services/plugins-service.js +2 -20
  309. package/lib/services/prepare-data-service.js +0 -1
  310. package/lib/services/project-backup-service.js +0 -4
  311. package/lib/services/project-changes-service.js +3 -14
  312. package/lib/services/project-cleanup-service.js +0 -2
  313. package/lib/services/project-config-service.js +2 -21
  314. package/lib/services/project-data-service.js +7 -36
  315. package/lib/services/project-name-service.js +0 -1
  316. package/lib/services/project-service.js +0 -10
  317. package/lib/services/project-templates-service.js +2 -3
  318. package/lib/services/qr-code-terminal-service.js +0 -1
  319. package/lib/services/require-service.js +0 -1
  320. package/lib/services/start-service.js +0 -1
  321. package/lib/services/temp-service.js +0 -3
  322. package/lib/services/terminal-spinner-service.js +0 -2
  323. package/lib/services/test-execution-service.js +3 -9
  324. package/lib/services/test-initialization-service.js +0 -4
  325. package/lib/services/timeline-profiler-service.js +0 -1
  326. package/lib/services/user-settings-service.js +0 -1
  327. package/lib/services/versions-service.js +5 -6
  328. package/lib/services/watch-ignore-list-service.js +0 -1
  329. package/lib/services/xcconfig-service.js +45 -12
  330. package/lib/services/xcproj-service.js +0 -1
  331. package/lib/shared-event-bus.js +0 -6
  332. package/lib/sys-info.js +2 -2
  333. package/lib/tools/config-manipulation/config-transformer.js +0 -12
  334. package/lib/tools/node-modules/node-modules-builder.js +0 -1
  335. package/lib/tools/node-modules/node-modules-dependencies-builder.js +0 -6
  336. package/lib/yarn-package-manager.js +0 -1
  337. package/lib/yarn2-package-manager.js +0 -3
  338. package/package.json +9 -20
  339. package/lib/.d.ts +0 -504
  340. package/lib/common/definitions/key-commands.d.ts +0 -62
  341. package/lib/common/services/analytics/google-analytics-custom-dimensions.d.ts +0 -16
  342. package/lib/definitions/system-warnings.d.ts +0 -4
  343. package/lib/detached-processes/detached-process-enums.d.ts +0 -70
  344. package/lib/services/analytics/google-analytics-cross-client-custom-dimensions.d.ts +0 -6
@@ -1,19 +1,17 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- // NOTE: This file is used to clean up resources used by CLI, when the CLI is killed.
4
- // The instances here are not shared with the ones in main CLI process.
5
3
  const fs = require("fs");
6
4
  const path = require("path");
7
5
  const shelljs = require("shelljs");
8
6
  const _ = require("lodash");
9
7
  const file_log_service_1 = require("./file-log-service");
10
8
  const yok_1 = require("../common/yok");
9
+ const detached_process_enums_1 = require("./detached-process-enums");
11
10
  const pathToBootstrap = process.argv[2];
12
11
  if (!pathToBootstrap || !fs.existsSync(pathToBootstrap)) {
13
12
  throw new Error("Invalid path to bootstrap.");
14
13
  }
15
14
  const logFile = process.argv[3];
16
- // After requiring the bootstrap we can use $injector
17
15
  require(pathToBootstrap);
18
16
  const fileLogService = yok_1.injector.resolve(file_log_service_1.FileLogService, {
19
17
  logFile,
@@ -66,7 +64,7 @@ const executeJSCleanup = async (jsCommand) => {
66
64
  catch (err) {
67
65
  fileLogService.logData({
68
66
  message: `Unable to execute action for file ${jsCommand.filePath} with data ${JSON.stringify(jsCommand.data)}. Error is: ${err}.`,
69
- type: "Error" /* FileLogMessageType.Error */,
67
+ type: detached_process_enums_1.FileLogMessageType.Error,
70
68
  });
71
69
  }
72
70
  };
@@ -91,7 +89,7 @@ const executeCleanup = async () => {
91
89
  catch (err) {
92
90
  fileLogService.logData({
93
91
  message: `Unable to execute command: ${JSON.stringify(commandInfo)}. Error is: ${err}.`,
94
- type: "Error" /* FileLogMessageType.Error */,
92
+ type: detached_process_enums_1.FileLogMessageType.Error,
95
93
  });
96
94
  }
97
95
  }
@@ -105,7 +103,7 @@ const executeCleanup = async () => {
105
103
  catch (err) {
106
104
  fileLogService.logData({
107
105
  message: `Unable to delete files: ${JSON.stringify(filesToDelete)}. Error is: ${err}.`,
108
- type: "Error" /* FileLogMessageType.Error */,
106
+ type: detached_process_enums_1.FileLogMessageType.Error,
109
107
  });
110
108
  }
111
109
  }
@@ -227,36 +225,36 @@ process.on("message", async (cleanupProcessMessage) => {
227
225
  message: `cleanup-process received message of type: ${JSON.stringify(cleanupProcessMessage)}`,
228
226
  });
229
227
  switch (cleanupProcessMessage.messageType) {
230
- case "AddCleanCommand" /* CleanupProcessMessage.AddCleanCommand */:
228
+ case detached_process_enums_1.CleanupProcessMessage.AddCleanCommand:
231
229
  addCleanupAction(cleanupProcessMessage.commandInfo);
232
230
  break;
233
- case "RemoveCleanCommand" /* CleanupProcessMessage.RemoveCleanCommand */:
231
+ case detached_process_enums_1.CleanupProcessMessage.RemoveCleanCommand:
234
232
  removeCleanupAction(cleanupProcessMessage.commandInfo);
235
233
  break;
236
- case "AddRequest" /* CleanupProcessMessage.AddRequest */:
234
+ case detached_process_enums_1.CleanupProcessMessage.AddRequest:
237
235
  addRequest(cleanupProcessMessage.requestInfo);
238
236
  break;
239
- case "RemoveRequest" /* CleanupProcessMessage.RemoveRequest */:
237
+ case detached_process_enums_1.CleanupProcessMessage.RemoveRequest:
240
238
  removeRequest(cleanupProcessMessage.requestInfo);
241
239
  break;
242
- case "AddDeleteFileAction" /* CleanupProcessMessage.AddDeleteFileAction */:
240
+ case detached_process_enums_1.CleanupProcessMessage.AddDeleteFileAction:
243
241
  addDeleteAction(cleanupProcessMessage.filePath);
244
242
  break;
245
- case "RemoveDeleteFileAction" /* CleanupProcessMessage.RemoveDeleteFileAction */:
243
+ case detached_process_enums_1.CleanupProcessMessage.RemoveDeleteFileAction:
246
244
  removeDeleteAction(cleanupProcessMessage.filePath);
247
245
  break;
248
- case "AddJSFileToRequire" /* CleanupProcessMessage.AddJSFileToRequire */:
246
+ case detached_process_enums_1.CleanupProcessMessage.AddJSFileToRequire:
249
247
  const jsCleanupMessage = cleanupProcessMessage;
250
248
  addJSFile(jsCleanupMessage.jsCommand);
251
249
  break;
252
- case "RemoveJSFileToRequire" /* CleanupProcessMessage.RemoveJSFileToRequire */:
250
+ case detached_process_enums_1.CleanupProcessMessage.RemoveJSFileToRequire:
253
251
  const msgToRemove = cleanupProcessMessage;
254
252
  removeJSFile(msgToRemove.jsCommand);
255
253
  break;
256
254
  default:
257
255
  fileLogService.logData({
258
256
  message: `Unable to handle message of type ${cleanupProcessMessage.messageType}. Full message is ${JSON.stringify(cleanupProcessMessage)}`,
259
- type: "Error" /* FileLogMessageType.Error */,
257
+ type: detached_process_enums_1.FileLogMessageType.Error,
260
258
  });
261
259
  break;
262
260
  }
@@ -270,7 +268,6 @@ process.on("disconnect", async () => {
270
268
  process.exit();
271
269
  });
272
270
  fileLogService.logData({
273
- message: `cleanup-process will send ${"ProcessReadyToReceive" /* DetachedProcessMessages.ProcessReadyToReceive */} message`,
271
+ message: `cleanup-process will send ${detached_process_enums_1.DetachedProcessMessages.ProcessReadyToReceive} message`,
274
272
  });
275
- process.send("ProcessReadyToReceive" /* DetachedProcessMessages.ProcessReadyToReceive */);
276
- //# sourceMappingURL=cleanup-process.js.map
273
+ process.send(detached_process_enums_1.DetachedProcessMessages.ProcessReadyToReceive);
@@ -0,0 +1,24 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CleanupProcessMessage = exports.FileLogMessageType = exports.DetachedProcessMessages = void 0;
4
+ var DetachedProcessMessages;
5
+ (function (DetachedProcessMessages) {
6
+ DetachedProcessMessages["ProcessReadyToReceive"] = "ProcessReadyToReceive";
7
+ DetachedProcessMessages["ProcessFinishedTasks"] = "ProcessFinishedTasks";
8
+ })(DetachedProcessMessages || (exports.DetachedProcessMessages = DetachedProcessMessages = {}));
9
+ var FileLogMessageType;
10
+ (function (FileLogMessageType) {
11
+ FileLogMessageType["Info"] = "Info";
12
+ FileLogMessageType["Error"] = "Error";
13
+ })(FileLogMessageType || (exports.FileLogMessageType = FileLogMessageType = {}));
14
+ var CleanupProcessMessage;
15
+ (function (CleanupProcessMessage) {
16
+ CleanupProcessMessage["AddCleanCommand"] = "AddCleanCommand";
17
+ CleanupProcessMessage["RemoveCleanCommand"] = "RemoveCleanCommand";
18
+ CleanupProcessMessage["AddRequest"] = "AddRequest";
19
+ CleanupProcessMessage["RemoveRequest"] = "RemoveRequest";
20
+ CleanupProcessMessage["AddDeleteFileAction"] = "AddDeleteFileAction";
21
+ CleanupProcessMessage["RemoveDeleteFileAction"] = "RemoveDeleteFileAction";
22
+ CleanupProcessMessage["AddJSFileToRequire"] = "AddJSFileToRequire";
23
+ CleanupProcessMessage["RemoveJSFileToRequire"] = "RemoveJSFileToRequire";
24
+ })(CleanupProcessMessage || (exports.CleanupProcessMessage = CleanupProcessMessage = {}));
@@ -3,6 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.FileLogService = void 0;
4
4
  const os_1 = require("os");
5
5
  const helpers_1 = require("../common/helpers");
6
+ const detached_process_enums_1 = require("./detached-process-enums");
6
7
  class FileLogService {
7
8
  constructor($fs, logFile) {
8
9
  this.$fs = $fs;
@@ -11,11 +12,10 @@ class FileLogService {
11
12
  logData(fileLoggingMessage) {
12
13
  if (this.logFile && fileLoggingMessage && fileLoggingMessage.message) {
13
14
  fileLoggingMessage.type =
14
- fileLoggingMessage.type || "Info" /* FileLogMessageType.Info */;
15
+ fileLoggingMessage.type || detached_process_enums_1.FileLogMessageType.Info;
15
16
  const formattedDate = (0, helpers_1.getFixedLengthDateString)();
16
17
  this.$fs.appendFile(this.logFile, `[${formattedDate}] [${fileLoggingMessage.type}] ${fileLoggingMessage.message}${os_1.EOL}`);
17
18
  }
18
19
  }
19
20
  }
20
21
  exports.FileLogService = FileLogService;
21
- //# sourceMappingURL=file-log-service.js.map
@@ -47,4 +47,3 @@ class DevicePathProvider {
47
47
  }
48
48
  exports.DevicePathProvider = DevicePathProvider;
49
49
  yok_1.injector.register("devicePathProvider", DevicePathProvider);
50
- //# sourceMappingURL=device-path-provider.js.map
@@ -76,7 +76,6 @@ class AppDebugSocketProxyFactory extends events_1.EventEmitter {
76
76
  const existingWebProxy = this.deviceWebServers[`${device.deviceInfo.identifier}-${appId}`];
77
77
  const result = existingWebProxy ||
78
78
  (await this.addWebSocketProxy(device, appId, projectName, projectDir));
79
- // TODO: do not remove till VSCode waits for this message in order to reattach
80
79
  this.$logger.info("Opened localhost " + result.options.port);
81
80
  return result;
82
81
  }
@@ -87,13 +86,8 @@ class AppDebugSocketProxyFactory extends events_1.EventEmitter {
87
86
  if (existingServer) {
88
87
  this.$errors.fail(`Web socket proxy is already running for device '${device.deviceInfo.identifier}' and app '${appId}'`);
89
88
  }
90
- // NOTE: We will try to provide command line options to select ports, at least on the localhost.
91
89
  const localPort = await this.$net.getAvailablePortInRange(41000);
92
90
  this.$logger.info("\nSetting up debugger proxy...\nPress Ctrl + C to terminate, or disconnect.\n");
93
- // NB: When the inspector frontend connects we might not have connected to the inspector backend yet.
94
- // That's why we use the verifyClient callback of the websocket server to stall the upgrade request until we connect.
95
- // We store the socket that connects us to the device in the upgrade request object itself and later on retrieve it
96
- // in the connection callback.
97
91
  let currentAppSocket = null;
98
92
  let currentWebSocket = null;
99
93
  const server = new ws.Server({
@@ -206,4 +200,3 @@ class AppDebugSocketProxyFactory extends events_1.EventEmitter {
206
200
  }
207
201
  exports.AppDebugSocketProxyFactory = AppDebugSocketProxyFactory;
208
202
  yok_1.injector.register("appDebugSocketProxyFactory", AppDebugSocketProxyFactory);
209
- //# sourceMappingURL=app-debug-socket-proxy-factory.js.map
@@ -6,8 +6,6 @@ const constants_1 = require("../../common/constants");
6
6
  const yok_1 = require("../../common/yok");
7
7
  class IOSNotification extends events_1.EventEmitter {
8
8
  getAttachRequest(appId, deviceId) {
9
- // It could be too early to emit this event, but we rely that if you construct attach request,
10
- // you will execute it immediately.
11
9
  this.emit(constants_1.ATTACH_REQUEST_EVENT_NAME, { deviceId, appId });
12
10
  return this.formatNotification(IOSNotification.ATTACH_REQUEST_NOTIFICATION_NAME, appId);
13
11
  }
@@ -30,4 +28,3 @@ IOSNotification.APP_REFRESH_STARTED_NOTIFICATION_NAME = "AppRefreshStarted";
30
28
  IOSNotification.ATTACH_REQUEST_NOTIFICATION_NAME = "AttachRequest";
31
29
  IOSNotification.READY_FOR_ATTACH_NOTIFICATION_NAME = "ReadyForAttach";
32
30
  yok_1.injector.register("iOSNotification", IOSNotification);
33
- //# sourceMappingURL=notification.js.map
@@ -25,8 +25,6 @@ class IOSSocketRequestExecutor {
25
25
  async executeRequest(mainRequestName, successfulyExecutedNotificationName, appId, deviceId, timeout) {
26
26
  let isSuccessful = false;
27
27
  try {
28
- // We should create this promise here because we need to send the ObserveNotification on the device
29
- // before we send the PostNotification.
30
28
  const socket = await this.$iOSNotificationService.postNotification(deviceId, successfulyExecutedNotificationName, constants.IOS_OBSERVE_NOTIFICATION_COMMAND_TYPE);
31
29
  const notificationPromise = this.$iOSNotificationService.awaitNotification(deviceId, +socket, timeout);
32
30
  await this.$iOSNotificationService.postNotification(deviceId, mainRequestName);
@@ -41,4 +39,3 @@ class IOSSocketRequestExecutor {
41
39
  }
42
40
  exports.IOSSocketRequestExecutor = IOSSocketRequestExecutor;
43
41
  yok_1.injector.register("iOSSocketRequestExecutor", IOSSocketRequestExecutor);
44
- //# sourceMappingURL=socket-request-executor.js.map
@@ -22,7 +22,7 @@ class AndroidBundleValidatorHelper extends version_validator_helper_1.VersionVal
22
22
  }
23
23
  validateRuntimeVersion(projectData) {
24
24
  if (this.$options.aab) {
25
- const runtimePackage = this.$projectDataService.getRuntimePackage(projectData.projectDir, "android" /* PlatformTypes.android */);
25
+ const runtimePackage = this.$projectDataService.getRuntimePackage(projectData.projectDir, constants_1.PlatformTypes.android);
26
26
  const androidRuntimeVersion = runtimePackage
27
27
  ? runtimePackage.version
28
28
  : "";
@@ -50,4 +50,3 @@ exports.AndroidBundleValidatorHelper = AndroidBundleValidatorHelper;
50
50
  AndroidBundleValidatorHelper.MIN_RUNTIME_VERSION = "5.0.0";
51
51
  AndroidBundleValidatorHelper.MIN_ANDROID_WITH_AAB_SUPPORT = "4.4.0";
52
52
  yok_1.injector.register("androidBundleValidatorHelper", AndroidBundleValidatorHelper);
53
- //# sourceMappingURL=android-bundle-validator-helper.js.map
@@ -63,4 +63,3 @@ class DeployCommandHelper {
63
63
  }
64
64
  exports.DeployCommandHelper = DeployCommandHelper;
65
65
  yok_1.injector.register("deployCommandHelper", DeployCommandHelper);
66
- //# sourceMappingURL=deploy-command-helper.js.map
@@ -2,6 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const color_1 = require("../color");
4
4
  const node_util_1 = require("node:util");
5
+ const key_commands_1 = require("../common/definitions/key-commands");
5
6
  const yok_1 = require("../common/yok");
6
7
  class KeyCommandHelper {
7
8
  constructor() {
@@ -9,8 +10,7 @@ class KeyCommandHelper {
9
10
  this.overrides = {};
10
11
  this.onKeyPressed = async (data) => {
11
12
  const key = data.toString();
12
- // Allow Ctrl + C always.
13
- if (this.keyCommandExecutionBlocked && key !== "\u0003" /* SpecialKeys.CtrlC */)
13
+ if (this.keyCommandExecutionBlocked && key !== key_commands_1.SpecialKeys.CtrlC)
14
14
  return;
15
15
  try {
16
16
  const exists = yok_1.injector.getRegisteredKeyCommandsNames().includes(key);
@@ -33,7 +33,7 @@ class KeyCommandHelper {
33
33
  return;
34
34
  }
35
35
  }
36
- if (keyCommand.key !== "\u0003" /* SpecialKeys.CtrlC */) {
36
+ if (keyCommand.key !== key_commands_1.SpecialKeys.CtrlC) {
37
37
  const line = ` ${color_1.color.dim("→")} ${color_1.color.bold(keyCommand.key)} — ${keyCommand.description}`;
38
38
  const lineLength = (0, node_util_1.stripVTControlCharacters)(line).length - 1;
39
39
  console.log(color_1.color.dim(` ┌${"─".repeat(lineLength)}┐`));
@@ -115,4 +115,3 @@ class KeyCommandHelper {
115
115
  }
116
116
  exports.default = KeyCommandHelper;
117
117
  yok_1.injector.register("keyCommandHelper", KeyCommandHelper);
118
- //# sourceMappingURL=key-command-helper.js.map
@@ -2,6 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.LiveSyncCommandHelper = void 0;
4
4
  const _ = require("lodash");
5
+ const enums_1 = require("../common/enums");
5
6
  const yok_1 = require("../common/yok");
6
7
  const constants_1 = require("../constants");
7
8
  class LiveSyncCommandHelper {
@@ -25,7 +26,6 @@ class LiveSyncCommandHelper {
25
26
  get $platformsDataService() {
26
27
  return this.$injector.resolve("platformsDataService");
27
28
  }
28
- // TODO: Remove this and replace it with buildData
29
29
  getLiveSyncData(projectDir) {
30
30
  const liveSyncInfo = {
31
31
  projectDir,
@@ -55,7 +55,6 @@ class LiveSyncCommandHelper {
55
55
  return devices;
56
56
  }
57
57
  async createDeviceDescriptors(devices, platform, additionalOptions) {
58
- // Now let's take data for each device:
59
58
  const deviceDescriptors = devices.map((d) => {
60
59
  const outputPath = additionalOptions &&
61
60
  additionalOptions.getOutputDirectory &&
@@ -135,7 +134,7 @@ class LiveSyncCommandHelper {
135
134
  const remainingDevicesToSync = devices.map((d) => d.deviceInfo.identifier);
136
135
  _.remove(remainingDevicesToSync, (d) => d === data.deviceIdentifier);
137
136
  if (remainingDevicesToSync.length === 0 && !data.keepProcessAlive) {
138
- process.exit(134 /* ErrorCodes.ALL_DEVICES_DISCONNECTED */);
137
+ process.exit(enums_1.ErrorCodes.ALL_DEVICES_DISCONNECTED);
139
138
  }
140
139
  });
141
140
  }
@@ -205,4 +204,3 @@ class LiveSyncCommandHelper {
205
204
  }
206
205
  exports.LiveSyncCommandHelper = LiveSyncCommandHelper;
207
206
  yok_1.injector.register("liveSyncCommandHelper", LiveSyncCommandHelper);
208
- //# sourceMappingURL=livesync-command-helper.js.map
@@ -34,4 +34,3 @@ NetworkConnectivityValidator.DNS_LOOKUP_URL = "play.nativescript.org";
34
34
  NetworkConnectivityValidator.NO_INTERNET_ERROR_CODE = "ENOTFOUND";
35
35
  NetworkConnectivityValidator.NO_INTERNET_ERROR_MESSAGE = "No internet connection. Check your internet settings and try again.";
36
36
  yok_1.injector.register("networkConnectivityValidator", NetworkConnectivityValidator);
37
- //# sourceMappingURL=network-connectivity-validator.js.map
@@ -2,6 +2,8 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.OptionsTracker = void 0;
4
4
  const path = require("path");
5
+ const constants_1 = require("../constants");
6
+ const enums_1 = require("../common/enums");
5
7
  const _ = require("lodash");
6
8
  const yok_1 = require("../common/yok");
7
9
  class OptionsTracker {
@@ -11,7 +13,7 @@ class OptionsTracker {
11
13
  async trackOptions(options) {
12
14
  const trackObject = this.getTrackObject(options);
13
15
  await this.$analyticsService.trackEventActionInGoogleAnalytics({
14
- action: "Options" /* TrackActionNames.Options */,
16
+ action: constants_1.TrackActionNames.Options,
15
17
  additionalData: JSON.stringify(trackObject),
16
18
  });
17
19
  }
@@ -58,7 +60,7 @@ class OptionsTracker {
58
60
  return true;
59
61
  }
60
62
  const optionDef = options[key];
61
- if (optionDef && optionDef.type === "boolean" /* OptionType.Boolean */) {
63
+ if (optionDef && optionDef.type === enums_1.OptionType.Boolean) {
62
64
  if ((optionDef.default !== true && value === false) ||
63
65
  (optionDef.default === true && value === true)) {
64
66
  return true;
@@ -75,4 +77,3 @@ OptionsTracker.PRIVATE_REPLACE_VALUE = "private";
75
77
  OptionsTracker.PATH_REPLACE_VALUE = "_localpath";
76
78
  OptionsTracker.SIZE_EXEEDED_REPLACE_VALUE = "sizeExceeded";
77
79
  yok_1.injector.register("optionsTracker", OptionsTracker);
78
- //# sourceMappingURL=options-track-helper.js.map
@@ -4,4 +4,3 @@ exports.resolvePackageJSONPath = exports.resolvePackagePath = void 0;
4
4
  const resolve_package_path_1 = require("@rigor789/resolve-package-path");
5
5
  Object.defineProperty(exports, "resolvePackagePath", { enumerable: true, get: function () { return resolve_package_path_1.resolvePackagePath; } });
6
6
  Object.defineProperty(exports, "resolvePackageJSONPath", { enumerable: true, get: function () { return resolve_package_path_1.resolvePackageJSONPath; } });
7
- //# sourceMappingURL=package-path-helper.js.map
@@ -70,10 +70,6 @@ class PlatformCommandHelper {
70
70
  const platformDir = path.join(projectData.platformsDir, platform.toLowerCase());
71
71
  this.$fs.deleteDirectory(platformDir);
72
72
  await this.$packageInstallationManager.uninstall(platformData.frameworkPackageName, projectData.projectDir);
73
- // this.$projectDataService.removeNSProperty(
74
- // projectData.projectDir,
75
- // platformData.frameworkPackageName
76
- // );
77
73
  this.$logger.info(`Platform ${platform} successfully removed.`);
78
74
  }
79
75
  catch (err) {
@@ -112,7 +108,7 @@ class PlatformCommandHelper {
112
108
  const installedPlatforms = this.getInstalledPlatforms(projectData);
113
109
  return _.filter(this.$mobileHelper.platformNames, (p) => {
114
110
  return (installedPlatforms.indexOf(p) < 0 &&
115
- this.$platformValidationService.isPlatformSupportedForOS(p, projectData)); // Only those not already installed
111
+ this.$platformValidationService.isPlatformSupportedForOS(p, projectData));
116
112
  });
117
113
  }
118
114
  getPreparedPlatforms(projectData) {
@@ -136,7 +132,7 @@ class PlatformCommandHelper {
136
132
  return true;
137
133
  }
138
134
  return (prepareInfo.nativePlatformStatus !==
139
- "1" /* constants.NativePlatformStatus.requiresPlatformAdd */);
135
+ constants.NativePlatformStatus.requiresPlatformAdd);
140
136
  }
141
137
  async updatePlatform(platform, version, projectData) {
142
138
  const platformData = this.$platformsDataService.getPlatformData(platform, projectData);
@@ -182,4 +178,3 @@ class PlatformCommandHelper {
182
178
  }
183
179
  exports.PlatformCommandHelper = PlatformCommandHelper;
184
180
  yok_1.injector.register("platformCommandHelper", PlatformCommandHelper);
185
- //# sourceMappingURL=platform-command-helper.js.map
@@ -23,4 +23,3 @@ class VersionValidatorHelper {
23
23
  }
24
24
  }
25
25
  exports.VersionValidatorHelper = VersionValidatorHelper;
26
- //# sourceMappingURL=version-validator-helper.js.map
@@ -1,5 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ const key_commands_1 = require("../common/definitions/key-commands");
3
4
  const yok_1 = require("../common/yok");
4
5
  const path = "./key-commands/index";
5
6
  yok_1.injector.requireKeyCommand("a", path);
@@ -13,10 +14,9 @@ yok_1.injector.requireKeyCommand("R", path);
13
14
  yok_1.injector.requireKeyCommand("w", path);
14
15
  yok_1.injector.requireKeyCommand("c", path);
15
16
  yok_1.injector.requireKeyCommand("n", path);
16
- yok_1.injector.requireKeyCommand("?" /* SpecialKeys.QuestionMark */, path);
17
- yok_1.injector.requireKeyCommand("\u0003" /* SpecialKeys.CtrlC */, path);
17
+ yok_1.injector.requireKeyCommand(key_commands_1.SpecialKeys.QuestionMark, path);
18
+ yok_1.injector.requireKeyCommand(key_commands_1.SpecialKeys.CtrlC, path);
18
19
  yok_1.injector.requireCommand("open|ios", path);
19
20
  yok_1.injector.requireCommand("open|android", path);
20
21
  yok_1.injector.requireCommand("open|visionos", path);
21
22
  yok_1.injector.requireCommand("open|vision", path);
22
- //# sourceMappingURL=bootstrap.js.map
@@ -5,6 +5,7 @@ const fs = require("fs");
5
5
  const os_1 = require("os");
6
6
  const path = require("path");
7
7
  const color_1 = require("../color");
8
+ const key_commands_1 = require("../common/definitions/key-commands");
8
9
  const yok_1 = require("../common/yok");
9
10
  class A {
10
11
  constructor($startService) {
@@ -294,7 +295,7 @@ class ShiftR {
294
295
  exports.ShiftR = ShiftR;
295
296
  class CtrlC {
296
297
  constructor() {
297
- this.key = "\u0003" /* SpecialKeys.CtrlC */;
298
+ this.key = key_commands_1.SpecialKeys.CtrlC;
298
299
  this.platform = "all";
299
300
  this.group = "Development Workflow";
300
301
  this.willBlockKeyCommandExecution = false;
@@ -365,7 +366,7 @@ exports.N = N;
365
366
  class QuestionMark {
366
367
  constructor($keyCommandHelper) {
367
368
  this.$keyCommandHelper = $keyCommandHelper;
368
- this.key = "?" /* SpecialKeys.QuestionMark */;
369
+ this.key = key_commands_1.SpecialKeys.QuestionMark;
369
370
  this.platform = "all";
370
371
  this.description = "Show this help";
371
372
  this.group = "Development Workflow";
@@ -405,10 +406,9 @@ yok_1.injector.registerKeyCommand("w", W);
405
406
  yok_1.injector.registerKeyCommand("c", C);
406
407
  yok_1.injector.registerKeyCommand("A", ShiftA);
407
408
  yok_1.injector.registerKeyCommand("n", N);
408
- yok_1.injector.registerKeyCommand("?" /* SpecialKeys.QuestionMark */, QuestionMark);
409
- yok_1.injector.registerKeyCommand("\u0003" /* SpecialKeys.CtrlC */, CtrlC);
409
+ yok_1.injector.registerKeyCommand(key_commands_1.SpecialKeys.QuestionMark, QuestionMark);
410
+ yok_1.injector.registerKeyCommand(key_commands_1.SpecialKeys.CtrlC, CtrlC);
410
411
  yok_1.injector.registerCommand("open|ios", OpenIOSCommand);
411
412
  yok_1.injector.registerCommand("open|visionos", OpenVisionOSCommand);
412
413
  yok_1.injector.registerCommand("open|vision", OpenVisionOSCommand);
413
414
  yok_1.injector.registerCommand("open|android", OpenAndroidCommand);
414
- //# sourceMappingURL=index.js.map
@@ -3,10 +3,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const yok_1 = require("./common/yok");
4
4
  require("./bootstrap");
5
5
  yok_1.injector.overrideAlreadyRequiredModule = true;
6
- // Temporary!!! Should not require appbuilder's entry point of mobile-cli-lib,
7
- // but once we separate logics in mobile-cli-lib, we should be able to require only specific bootstrap.
8
- // Use this hack for now, as this will allow requiring {N} CLI as library directly and executing some device specific operations.
9
6
  yok_1.injector.requirePublicClass("deviceEmitter", "./common/mobile/device-emitter");
10
7
  yok_1.injector.requirePublicClass("deviceLogProvider", "./common/mobile/device-log-emitter");
11
8
  yok_1.injector.resolve("staticConfig").disableAnalytics = true;
12
- //# sourceMappingURL=nativescript-cli-lib-bootstrap.js.map
@@ -3,4 +3,3 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const yok_1 = require("./common/yok");
4
4
  require("./nativescript-cli-lib-bootstrap");
5
5
  module.exports = yok_1.injector.publicApi;
6
- //# sourceMappingURL=nativescript-cli-lib.js.map
@@ -6,7 +6,6 @@ const shelljs = require("shelljs");
6
6
  shelljs.config.silent = true;
7
7
  shelljs.config.fatal = true;
8
8
  if (process.platform === "win32") {
9
- // Later versions of shelljs do not process globs with \ path delimiters correctly, for windows change to /
10
9
  const realcp = shelljs.cp;
11
10
  shelljs.cp = (...args) => {
12
11
  if (args.length === 3) {
@@ -37,8 +36,9 @@ if (process.platform === "win32") {
37
36
  const errors_1 = require("./common/errors");
38
37
  const helpers_1 = require("./common/helpers");
39
38
  const yok_1 = require("./common/yok");
39
+ const enums_1 = require("./common/enums");
40
40
  const color_1 = require("./color");
41
- (0, errors_1.installUncaughtExceptionListener)(process.exit.bind(process, 120 /* ErrorCodes.UNCAUGHT */));
41
+ (0, errors_1.installUncaughtExceptionListener)(process.exit.bind(process, enums_1.ErrorCodes.UNCAUGHT));
42
42
  const logger = yok_1.injector.resolve("logger");
43
43
  exports.originalProcessOn = process.on.bind(process);
44
44
  process.on = (event, listener) => {
@@ -52,10 +52,8 @@ process.on = (event, listener) => {
52
52
  return (0, exports.originalProcessOn)(event, listener);
53
53
  }
54
54
  };
55
- /* tslint:disable:no-floating-promises */
56
55
  (async () => {
57
56
  if (process.argv.includes("--get-yargs-completions")) {
58
- // This is a special case when we want to get the yargs completions as fast as possible...
59
57
  yok_1.injector.resolve("$options");
60
58
  return;
61
59
  }
@@ -72,13 +70,6 @@ process.on = (event, listener) => {
72
70
  logger.trace("Unable to load extensions. Error is: ", err);
73
71
  }
74
72
  const commandDispatcher = yok_1.injector.resolve("commandDispatcher");
75
- // unused...
76
- // const messages: IMessagesService = injector.resolve("$messagesService");
77
- // messages.pathsToMessageJsonFiles = [
78
- // /* Place client-specific json message file paths here */
79
- // ];
80
73
  await commandDispatcher.dispatchCommand();
81
74
  yok_1.injector.dispose();
82
75
  })();
83
- /* tslint:enable:no-floating-promises */
84
- //# sourceMappingURL=nativescript-cli.js.map
@@ -3,4 +3,3 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const pbxprojDomXcodeModule = require("pbxproj-dom/xcode");
4
4
  const yok_1 = require("../common/yok");
5
5
  yok_1.injector.register("pbxprojDomXcode", pbxprojDomXcodeModule);
6
- //# sourceMappingURL=pbxproj-dom-xcode.js.map
package/lib/node/xcode.js CHANGED
@@ -5,4 +5,3 @@ const xcode = require("nativescript-dev-xcode");
5
5
  exports.xcode = xcode;
6
6
  const yok_1 = require("../common/yok");
7
7
  yok_1.injector.register("xcode", xcode);
8
- //# sourceMappingURL=xcode.js.map
@@ -37,12 +37,8 @@ class NodePackageManager extends base_package_manager_1.BasePackageManager {
37
37
  }
38
38
  params = params.concat(flags);
39
39
  const cwd = pathToSave;
40
- // Npm creates `etc` directory in installation dir when --prefix is passed
41
- // https://github.com/npm/npm/issues/11486
42
- // we should delete it if it was created because of us
43
40
  const etcDirectoryLocation = (0, path_1.join)(cwd, "etc");
44
41
  const etcExistsPriorToInstallation = this.$fs.exists(etcDirectoryLocation);
45
- //TODO: plamen5kov: workaround is here for a reason (remove whole file later)
46
42
  if (config.path) {
47
43
  let relativePathFromCwdToSource = "";
48
44
  if (config.frameworkPath) {
@@ -58,13 +54,9 @@ class NodePackageManager extends base_package_manager_1.BasePackageManager {
58
54
  }
59
55
  catch (err) {
60
56
  if (err.message && err.message.indexOf("EPEERINVALID") !== -1) {
61
- // Not installed peer dependencies are treated by npm 2 as errors, but npm 3 treats them as warnings.
62
- // We'll show them as warnings and let the user install them in case they are needed.
63
57
  this.$logger.warn(err.message);
64
58
  }
65
59
  else {
66
- // All other errors should be handled by the caller code.
67
- // Revert package.json contents to preserve valid state
68
60
  this.$fs.writeJson(packageJsonPath, jsonContentBefore);
69
61
  throw err;
70
62
  }
@@ -86,7 +78,7 @@ class NodePackageManager extends base_package_manager_1.BasePackageManager {
86
78
  return this.$childProcess.exec(`npm search ${filter.join(" ")} ${flags}`);
87
79
  }
88
80
  async view(packageName, config) {
89
- const wrappedConfig = _.extend({}, config, { json: true }); // always require view response as JSON
81
+ const wrappedConfig = _.extend({}, config, { json: true });
90
82
  const flags = this.getFlagsString(wrappedConfig, false);
91
83
  let viewResult;
92
84
  try {
@@ -103,7 +95,6 @@ class NodePackageManager extends base_package_manager_1.BasePackageManager {
103
95
  }
104
96
  }
105
97
  async searchNpms(keyword) {
106
- // TODO: Fix the generation of url - in case it contains @ or / , the call may fail.
107
98
  const httpRequestResult = await this.$httpClient.httpRequest(`https://api.npms.io/v2/search?q=keywords:${keyword}`);
108
99
  const result = JSON.parse(httpRequestResult.body);
109
100
  return result;
@@ -140,4 +131,3 @@ __decorate([
140
131
  (0, decorators_1.cache)()
141
132
  ], NodePackageManager.prototype, "getCachePath", null);
142
133
  yok_1.injector.register("npm", NodePackageManager);
143
- //# sourceMappingURL=node-package-manager.js.map