@sap-ux/cf-deploy-config-sub-generator 0.2.59 → 0.2.61

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.
@@ -1,8 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.DESTINATION_AUTHTYPE_NOTFOUND = exports.API_BUSINESS_HUB_ENTERPRISE_PREFIX = exports.loadManifest = exports.getCFQuestions = void 0;
4
- const path_1 = require("path");
5
- const os_1 = require("os");
4
+ const node_path_1 = require("node:path");
5
+ const node_os_1 = require("node:os");
6
6
  const hasbin = require("hasbin");
7
7
  const yeoman_ui_types_1 = require("@sap-devx/yeoman-ui-types");
8
8
  const fiori_generator_shared_1 = require("@sap-ux/fiori-generator-shared");
@@ -120,14 +120,14 @@ class default_1 extends deploy_config_generator_shared_1.DeploymentGenerator {
120
120
  this.projectRoot = capRoot;
121
121
  try {
122
122
  this.packageName =
123
- this.fs.readJSON((0, path_1.join)(this.projectRoot, project_access_1.FileName.Package))?.name ?? '';
123
+ this.fs.readJSON((0, node_path_1.join)(this.projectRoot, project_access_1.FileName.Package))?.name ?? '';
124
124
  }
125
125
  catch {
126
126
  // Ignore errors while reading the package.json file, will be handled in the validators of the respective modules
127
127
  }
128
128
  }
129
129
  else if (this.mtaPath) {
130
- this.projectRoot = (0, path_1.dirname)(this.mtaPath);
130
+ this.projectRoot = (0, node_path_1.dirname)(this.mtaPath);
131
131
  }
132
132
  }
133
133
  /**
@@ -136,11 +136,11 @@ class default_1 extends deploy_config_generator_shared_1.DeploymentGenerator {
136
136
  */
137
137
  async _processProjectConfigs() {
138
138
  const baseConfigFile = this.options.base ?? project_access_1.FileName.Ui5Yaml;
139
- const baseConfigExists = this.fs.exists((0, path_1.join)(this.appPath, baseConfigFile));
139
+ const baseConfigExists = this.fs.exists((0, node_path_1.join)(this.appPath, baseConfigFile));
140
140
  if (!baseConfigExists) {
141
141
  (0, deploy_config_generator_shared_1.bail)(deploy_config_generator_shared_1.ErrorHandler.noBaseConfig(baseConfigFile));
142
142
  }
143
- this.deployConfigExists = this.fs.exists((0, path_1.join)(this.appPath, this.options.config ?? project_access_1.FileName.Ui5Yaml));
143
+ this.deployConfigExists = this.fs.exists((0, node_path_1.join)(this.appPath, this.options.config ?? project_access_1.FileName.Ui5Yaml));
144
144
  }
145
145
  async prompting() {
146
146
  if (this.abort) {
@@ -302,7 +302,7 @@ class default_1 extends deploy_config_generator_shared_1.DeploymentGenerator {
302
302
  * @param path - the path to run npm install
303
303
  */
304
304
  async _runNpmInstall(path) {
305
- const npm = (0, os_1.platform)() === 'win32' ? 'npm.cmd' : 'npm';
305
+ const npm = (0, node_os_1.platform)() === 'win32' ? 'npm.cmd' : 'npm';
306
306
  // install dependencies
307
307
  await this.spawnCommand(npm, ['install', '--no-audit', '--no-fund', '--silent', '--prefer-offline', '--no-progress'], {
308
308
  cwd: path
@@ -7,7 +7,7 @@ const btp_utils_1 = require("@sap-ux/btp-utils");
7
7
  const project_access_1 = require("@sap-ux/project-access");
8
8
  const deploy_config_generator_shared_1 = require("@sap-ux/deploy-config-generator-shared");
9
9
  const cf_deploy_config_writer_1 = require("@sap-ux/cf-deploy-config-writer");
10
- const path_1 = require("path");
10
+ const node_path_1 = require("node:path");
11
11
  const utils_1 = require("../utils");
12
12
  /**
13
13
  * Get the destination choices from API Hub | Local Store | mta.yaml.
@@ -128,7 +128,7 @@ function destinationQuestionDefaultOption(isAbapDirectServiceBinding, isBAS, cfD
128
128
  * @returns manifest object
129
129
  */
130
130
  async function loadManifest(fs, appPath) {
131
- const manifestPath = (0, path_1.join)(await (0, project_access_1.getWebappPath)(appPath), project_access_1.FileName.Manifest);
131
+ const manifestPath = (0, node_path_1.join)(await (0, project_access_1.getWebappPath)(appPath), project_access_1.FileName.Manifest);
132
132
  const manifest = fs.readJSON(manifestPath);
133
133
  if (!manifest) {
134
134
  (0, deploy_config_generator_shared_1.bail)(deploy_config_generator_shared_1.ErrorHandler.getErrorMsgFromType(deploy_config_generator_shared_1.ERROR_TYPE.NO_MANIFEST));
@@ -1,8 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- const path_1 = require("path");
3
+ const node_path_1 = require("node:path");
4
4
  const hasbin = require("hasbin");
5
- const os_1 = require("os");
5
+ const node_os_1 = require("node:os");
6
6
  const yeoman_ui_types_1 = require("@sap-devx/yeoman-ui-types");
7
7
  const deploy_config_generator_shared_1 = require("@sap-ux/deploy-config-generator-shared");
8
8
  const cf_deploy_config_inquirer_1 = require("@sap-ux/cf-deploy-config-inquirer");
@@ -71,7 +71,7 @@ class default_1 extends deploy_config_generator_shared_1.DeploymentGenerator {
71
71
  if (this.abort) {
72
72
  return;
73
73
  }
74
- this.destinationRoot((0, path_1.join)(this.answers.mtaPath, this.answers.mtaId));
74
+ this.destinationRoot((0, node_path_1.join)(this.answers.mtaPath, this.answers.mtaId));
75
75
  deploy_config_generator_shared_1.DeploymentGenerator.logger?.debug((0, utils_1.t)('appRouterGen.debug.projectPath', { destinationPath: this.destinationRoot() }));
76
76
  let abapServiceProvider;
77
77
  if (this.answers.addABAPServiceBinding) {
@@ -96,7 +96,7 @@ class default_1 extends deploy_config_generator_shared_1.DeploymentGenerator {
96
96
  }
97
97
  _install() {
98
98
  if (!this.abort && !this.options.skipInstall) {
99
- const npm = (0, os_1.platform)() === 'win32' ? 'npm.cmd' : 'npm';
99
+ const npm = (0, node_os_1.platform)() === 'win32' ? 'npm.cmd' : 'npm';
100
100
  // install dependencies in project root
101
101
  this.spawnCommand(npm, ['install', '--no-audit', '--no-fund', '--silent', '--prefer-offline', '--no-progress'], {
102
102
  cwd: this.destinationRoot()
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@sap-ux/cf-deploy-config-sub-generator",
3
3
  "description": "Generators for configuring Cloud Foundry deployment configuration",
4
- "version": "0.2.59",
4
+ "version": "0.2.61",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "https://github.com/SAP/open-ux-tools.git",
@@ -23,14 +23,14 @@
23
23
  "hasbin": "1.2.3",
24
24
  "i18next": "25.3.0",
25
25
  "yeoman-generator": "5.10.0",
26
- "@sap-ux/btp-utils": "1.1.3",
27
- "@sap-ux/cf-deploy-config-writer": "0.3.28",
28
- "@sap-ux/cf-deploy-config-inquirer": "0.5.18",
29
- "@sap-ux/deploy-config-generator-shared": "0.1.38",
26
+ "@sap-ux/btp-utils": "1.1.4",
27
+ "@sap-ux/cf-deploy-config-writer": "0.3.30",
28
+ "@sap-ux/cf-deploy-config-inquirer": "0.5.20",
29
+ "@sap-ux/deploy-config-generator-shared": "0.1.40",
30
30
  "@sap-ux/feature-toggle": "0.3.1",
31
- "@sap-ux/fiori-generator-shared": "0.13.19",
32
- "@sap-ux/inquirer-common": "0.7.46",
33
- "@sap-ux/project-access": "1.32.2"
31
+ "@sap-ux/fiori-generator-shared": "0.13.21",
32
+ "@sap-ux/inquirer-common": "0.7.48",
33
+ "@sap-ux/project-access": "1.32.3"
34
34
  },
35
35
  "devDependencies": {
36
36
  "@types/hasbin": "1.2.2",