nativescript 9.0.0-alpha.0 → 9.0.0-alpha.10

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 (33) hide show
  1. package/config/test-deps-versions-generated.json +16 -1
  2. package/lib/.d.ts +3 -3
  3. package/lib/bootstrap.js +1 -1
  4. package/lib/color.js +38 -7
  5. package/lib/commands/clean.js +1 -2
  6. package/lib/commands/embedding/embed.js +1 -1
  7. package/lib/commands/post-install.js +2 -2
  8. package/lib/commands/typings.js +12 -12
  9. package/lib/common/header.js +3 -3
  10. package/lib/common/logger/layouts/cli-layout.js +1 -1
  11. package/lib/common/logger/logger.js +2 -2
  12. package/lib/common/mobile/android/android-emulator-services.js +9 -7
  13. package/lib/common/mobile/device-log-provider.js +3 -4
  14. package/lib/common/mobile/emulator-helper.js +1 -0
  15. package/lib/common/services/hooks-service.js +23 -6
  16. package/lib/common/verify-node-version.js +1 -1
  17. package/lib/constants.js +6 -4
  18. package/lib/controllers/migrate-controller.js +3 -4
  19. package/lib/controllers/prepare-controller.js +9 -9
  20. package/lib/definitions/project.d.ts +19 -1
  21. package/lib/definitions/temp-service.d.ts +6 -2
  22. package/lib/helpers/key-command-helper.js +2 -1
  23. package/lib/project-data.js +10 -4
  24. package/lib/services/analytics-settings-service.js +2 -1
  25. package/lib/services/bundler/bundler-compiler-service.js +641 -0
  26. package/lib/services/bundler/bundler.js +2 -0
  27. package/lib/services/ios/spm-service.js +1 -1
  28. package/lib/services/livesync/android-livesync-tool.js +3 -1
  29. package/lib/services/temp-service.js +16 -4
  30. package/package.json +28 -33
  31. package/vendor/gradle-plugin/build.gradle +3 -3
  32. package/lib/services/webpack/webpack-compiler-service.js +0 -396
  33. package/lib/services/webpack/webpack.d.ts +0 -226
@@ -1,6 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const color_1 = require("../color");
4
+ const node_util_1 = require("node:util");
4
5
  const yok_1 = require("../common/yok");
5
6
  class KeyCommandHelper {
6
7
  constructor() {
@@ -33,7 +34,7 @@ class KeyCommandHelper {
33
34
  }
34
35
  if (keyCommand.key !== "\u0003") {
35
36
  const line = ` ${color_1.color.dim("→")} ${color_1.color.bold(keyCommand.key)} — ${keyCommand.description}`;
36
- const lineLength = (0, color_1.stripColors)(line).length - 1;
37
+ const lineLength = (0, node_util_1.stripVTControlCharacters)(line).length - 1;
37
38
  console.log(color_1.color.dim(` ┌${"─".repeat(lineLength)}┐`));
38
39
  console.log(line + color_1.color.dim(" │"));
39
40
  console.log(color_1.color.dim(` └${"─".repeat(lineLength)}┘`));
@@ -56,6 +56,7 @@ class ProjectData {
56
56
  this.errorInvalidProject(projectDir);
57
57
  }
58
58
  initializeProjectDataFromContent(packageJsonContent, projectDir) {
59
+ var _a, _b;
59
60
  projectDir = projectDir || this.$projectHelper.projectDir || "";
60
61
  this.projectDir = projectDir;
61
62
  const projectFilePath = this.getProjectFilePath(projectDir);
@@ -92,10 +93,15 @@ class ProjectData {
92
93
  this.buildXcconfigPath = path.join(this.appResourcesDirectoryPath, this.$devicePlatformsConstants.iOS, constants.BUILD_XCCONFIG_FILE_NAME);
93
94
  this.podfilePath = path.join(this.appResourcesDirectoryPath, this.$devicePlatformsConstants.iOS, constants.PODFILE_NAME);
94
95
  this.isShared = !!(this.nsConfig && this.nsConfig.shared);
95
- this.webpackConfigPath =
96
- this.nsConfig && this.nsConfig.webpackConfigPath
97
- ? path.resolve(this.projectDir, this.nsConfig.webpackConfigPath)
98
- : path.join(this.projectDir, "webpack.config.js");
96
+ const webpackConfigPath = this.nsConfig && this.nsConfig.webpackConfigPath
97
+ ? path.resolve(this.projectDir, this.nsConfig.webpackConfigPath)
98
+ : path.join(this.projectDir, "webpack.config.js");
99
+ this.webpackConfigPath = webpackConfigPath;
100
+ this.bundlerConfigPath =
101
+ this.nsConfig && this.nsConfig.bundlerConfigPath
102
+ ? path.resolve(this.projectDir, this.nsConfig.bundlerConfigPath)
103
+ : webpackConfigPath;
104
+ this.bundler = (_b = (_a = this === null || this === void 0 ? void 0 : this.nsConfig) === null || _a === void 0 ? void 0 : _a.bundler) !== null && _b !== void 0 ? _b : "webpack";
99
105
  return;
100
106
  }
101
107
  this.errorInvalidProject(projectDir);
@@ -29,7 +29,8 @@ class AnalyticsSettingsService {
29
29
  return this.getSettingValueOrDefault(this.$staticConfig.ANALYTICS_INSTALLATION_ID_SETTING_NAME);
30
30
  }
31
31
  getClientName() {
32
- return "" + color_1.color.cyan.bold(this.$staticConfig.CLIENT_NAME_ALIAS);
32
+ return ("" +
33
+ color_1.color.styleText(["cyan", "bold"], this.$staticConfig.CLIENT_NAME_ALIAS));
33
34
  }
34
35
  async getUserSessionsCount(projectName) {
35
36
  const sessionsCountForProject = await this.$userSettingsService.getSettingValue(this.getSessionsProjectKey(projectName));