@sap-ux/generator-adp 0.4.7 → 0.4.9

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.
@@ -4,7 +4,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  const yeoman_ui_types_1 = require("@sap-devx/yeoman-ui-types");
7
- const path_1 = require("path");
7
+ const node_path_1 = require("node:path");
8
8
  const yeoman_generator_1 = __importDefault(require("yeoman-generator"));
9
9
  const adp_tooling_1 = require("@sap-ux/adp-tooling");
10
10
  const feature_toggle_1 = require("@sap-ux/feature-toggle");
@@ -301,7 +301,7 @@ class default_1 extends yeoman_generator_1.default {
301
301
  * @returns {string} The project path from the answers.
302
302
  */
303
303
  _getProjectPath() {
304
- return (0, path_1.join)(this.attributeAnswers.targetFolder, this.attributeAnswers.projectName);
304
+ return (0, node_path_1.join)(this.attributeAnswers.targetFolder, this.attributeAnswers.projectName);
305
305
  }
306
306
  /**
307
307
  * Configures logging for the generator.
@@ -3,8 +3,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.getDefaultNamespace = getDefaultNamespace;
4
4
  exports.getDefaultProjectName = getDefaultProjectName;
5
5
  exports.getDefaultVersion = getDefaultVersion;
6
- const path_1 = require("path");
7
- const fs_1 = require("fs");
6
+ const node_path_1 = require("node:path");
7
+ const node_fs_1 = require("node:fs");
8
8
  const adp_tooling_1 = require("@sap-ux/adp-tooling");
9
9
  const DEFAULT_PREFIX = 'app.variant';
10
10
  /**
@@ -27,7 +27,7 @@ function getDefaultNamespace(projectName, isCustomerBase) {
27
27
  function getDefaultProjectName(basePath, dirName = DEFAULT_PREFIX) {
28
28
  let newDir = dirName;
29
29
  let index = 1;
30
- while ((0, fs_1.existsSync)((0, path_1.join)(basePath, newDir))) {
30
+ while ((0, node_fs_1.existsSync)((0, node_path_1.join)(basePath, newDir))) {
31
31
  index++;
32
32
  newDir = `${dirName}${index}`;
33
33
  }
@@ -3,7 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
3
3
  return (mod && mod.__esModule) ? mod : { "default": mod };
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
- const path_1 = __importDefault(require("path"));
6
+ const node_path_1 = __importDefault(require("node:path"));
7
7
  const yeoman_ui_types_1 = require("@sap-devx/yeoman-ui-types");
8
8
  const btp_utils_1 = require("@sap-ux/btp-utils");
9
9
  const system_access_1 = require("@sap-ux/system-access");
@@ -86,7 +86,7 @@ class SubGeneratorWithAuthBase extends sub_gen_base_1.default {
86
86
  this._registerPrompts(new yeoman_ui_types_1.Prompts((0, steps_1.getSubGenAuthPages)(this.generatorType, this.system)));
87
87
  }
88
88
  this.systemLookup = new adp_tooling_1.SystemLookup(this.logger);
89
- const adpConfig = await (0, adp_tooling_1.getAdpConfig)(this.projectPath, path_1.default.join(this.projectPath, 'ui5.yaml'));
89
+ const adpConfig = await (0, adp_tooling_1.getAdpConfig)(this.projectPath, node_path_1.default.join(this.projectPath, 'ui5.yaml'));
90
90
  this.abapTarget = adpConfig.target;
91
91
  this.system = ((0, btp_utils_1.isAppStudio)() ? this.abapTarget.destination : this.abapTarget.url) ?? '';
92
92
  this.logger.log(`Successfully retrieved abap target\n${JSON.stringify(this.abapTarget, null, 2)}`);
@@ -120,7 +120,7 @@ class SubGeneratorWithAuthBase extends sub_gen_base_1.default {
120
120
  requestOptions = { auth: { username: credentials.username, password: credentials.password } };
121
121
  }
122
122
  this.variant = await (0, adp_tooling_1.getVariant)(this.projectPath);
123
- const yamlPath = path_1.default.join(this.projectPath, 'ui5.yaml');
123
+ const yamlPath = node_path_1.default.join(this.projectPath, 'ui5.yaml');
124
124
  const { target, ignoreCertErrors = false } = await (0, adp_tooling_1.getAdpConfig)(this.projectPath, yamlPath);
125
125
  const provider = await (0, system_access_1.createAbapServiceProvider)(target, { ...requestOptions, ignoreCertErrors }, true, this.logger);
126
126
  this.manifestService = await adp_tooling_1.ManifestService.initMergedManifest(provider, this.projectPath, this.variant, this.logger);
@@ -35,9 +35,9 @@ var __importStar = (this && this.__importStar) || (function () {
35
35
  Object.defineProperty(exports, "__esModule", { value: true });
36
36
  exports.getPackageInfo = getPackageInfo;
37
37
  exports.installDependencies = installDependencies;
38
- const path_1 = require("path");
38
+ const node_path_1 = require("node:path");
39
39
  const util = __importStar(require("util"));
40
- const fs_1 = require("fs");
40
+ const node_fs_1 = require("node:fs");
41
41
  const child_process_1 = require("child_process");
42
42
  /**
43
43
  * Reads the package.json of the current package.
@@ -45,7 +45,7 @@ const child_process_1 = require("child_process");
45
45
  * @returns {Package} Package.json of the current package.
46
46
  */
47
47
  function getPackageInfo() {
48
- return JSON.parse((0, fs_1.readFileSync)((0, path_1.join)(__dirname, '../../package.json'), 'utf-8'));
48
+ return JSON.parse((0, node_fs_1.readFileSync)((0, node_path_1.join)(__dirname, '../../package.json'), 'utf-8'));
49
49
  }
50
50
  /**
51
51
  * Installs dependencies in the project directory.
@@ -1,8 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.getTemplatesOverwritePath = getTemplatesOverwritePath;
4
- const fs_1 = require("fs");
5
- const path_1 = require("path");
4
+ const node_fs_1 = require("node:fs");
5
+ const node_path_1 = require("node:path");
6
6
  /**
7
7
  * This function is used to get the path to the templates directory when this generator is bundled inside `@sap/generator-fiori`.
8
8
  * It is used to overwrite the templates directory.
@@ -10,8 +10,8 @@ const path_1 = require("path");
10
10
  * @returns {string | undefined} The path to the templates directory.
11
11
  */
12
12
  function getTemplatesOverwritePath() {
13
- const templatePath = (0, path_1.join)(__dirname, 'templates');
14
- if ((0, fs_1.existsSync)(templatePath)) {
13
+ const templatePath = (0, node_path_1.join)(__dirname, 'templates');
14
+ if ((0, node_fs_1.existsSync)(templatePath)) {
15
15
  return templatePath;
16
16
  }
17
17
  return undefined;
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "displayName": "SAPUI5 Adaptation Project",
4
4
  "homepage": "https://help.sap.com/viewer/584e0bcbfd4a4aff91c815cefa0bce2d/Cloud/en-US/ada9567b767941aba8d49fdb4fdedea7.html",
5
5
  "description": "Adaptation project allows you to create an app variant for an existing SAP Fiori elements-based or SAPUI5 freestyle application, without changing the original application.",
6
- "version": "0.4.7",
6
+ "version": "0.4.9",
7
7
  "repository": {
8
8
  "type": "git",
9
9
  "url": "https://github.com/SAP/open-ux-tools.git",
@@ -30,18 +30,18 @@
30
30
  "i18next": "25.3.0",
31
31
  "yeoman-generator": "5.10.0",
32
32
  "uuid": "10.0.0",
33
- "@sap-ux/adp-tooling": "0.15.32",
34
- "@sap-ux/axios-extension": "1.22.9",
35
- "@sap-ux/btp-utils": "1.1.3",
33
+ "@sap-ux/adp-tooling": "0.15.34",
34
+ "@sap-ux/axios-extension": "1.22.10",
35
+ "@sap-ux/btp-utils": "1.1.4",
36
36
  "@sap-ux/feature-toggle": "0.3.1",
37
- "@sap-ux/inquirer-common": "0.7.46",
37
+ "@sap-ux/inquirer-common": "0.7.48",
38
38
  "@sap-ux/logger": "0.7.0",
39
- "@sap-ux/project-access": "1.32.2",
40
- "@sap-ux/store": "1.1.4",
41
- "@sap-ux/system-access": "0.6.18",
42
- "@sap-ux/project-input-validator": "0.6.23",
43
- "@sap-ux/fiori-generator-shared": "0.13.19",
44
- "@sap-ux/odata-service-writer": "0.27.23"
39
+ "@sap-ux/project-access": "1.32.3",
40
+ "@sap-ux/store": "1.1.5",
41
+ "@sap-ux/system-access": "0.6.19",
42
+ "@sap-ux/project-input-validator": "0.6.24",
43
+ "@sap-ux/fiori-generator-shared": "0.13.21",
44
+ "@sap-ux/odata-service-writer": "0.27.24"
45
45
  },
46
46
  "devDependencies": {
47
47
  "@jest/types": "30.0.1",
@@ -56,7 +56,7 @@
56
56
  "fs-extra": "10.0.0",
57
57
  "rimraf": "5.0.5",
58
58
  "yeoman-test": "6.3.0",
59
- "@sap-ux/deploy-config-sub-generator": "0.4.17"
59
+ "@sap-ux/deploy-config-sub-generator": "0.4.19"
60
60
  },
61
61
  "engines": {
62
62
  "node": ">=20.x"