@sap-ux/deploy-tooling 0.18.2 → 0.18.4

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.
package/README.md CHANGED
@@ -58,6 +58,8 @@ undeploy --config myproject/my-undeploy-config.yaml
58
58
 
59
59
  This is the minimal custom task configuration for deployment using package `$TMP`, without the change being recorded in a transport request.
60
60
 
61
+ > **Note:** The package name `$TMP` must be uppercase. If a lowercase variant, for example, `$tmp` is detected in the configuration, it is automatically normalized to `$TMP` and a warning is logged because lowercase values can cause deployment failures.
62
+
61
63
  ```yaml
62
64
  - name: abap-deploy-task
63
65
  configuration:
@@ -1,4 +1,5 @@
1
1
  import type { AbapDeployConfig, CliOptions } from '../types';
2
+ import type { Logger } from '@sap-ux/logger';
2
3
  /**
3
4
  * Tries to read the version of the modules package.json but in case of an error, it returns the manually maintained version matching major.minor of the module.
4
5
  *
@@ -17,7 +18,8 @@ export declare function getDeploymentConfig(path: string): Promise<AbapDeployCon
17
18
  *
18
19
  * @param taskConfig - base configuration from the file
19
20
  * @param options - CLI options
21
+ * @param logger - optional logger for warnings
20
22
  * @returns the merged config
21
23
  */
22
- export declare function mergeConfig(taskConfig: AbapDeployConfig, options: CliOptions): Promise<AbapDeployConfig>;
24
+ export declare function mergeConfig(taskConfig: AbapDeployConfig, options: CliOptions, logger?: Logger): Promise<AbapDeployConfig>;
23
25
  //# sourceMappingURL=config.d.ts.map
@@ -157,15 +157,21 @@ function mergeCredentials(taskConfig, options) {
157
157
  *
158
158
  * @param taskConfig - base configuration from the file
159
159
  * @param options - CLI options
160
+ * @param logger - optional logger for warnings
160
161
  * @returns the merged config
161
162
  */
162
- async function mergeConfig(taskConfig, options) {
163
+ async function mergeConfig(taskConfig, options, logger) {
163
164
  const app = {
164
165
  name: options.name ?? taskConfig.app?.name,
165
166
  description: options.description ?? taskConfig.app?.description,
166
167
  package: options.package ?? taskConfig.app?.package,
167
168
  transport: options.transport ?? taskConfig.app?.transport
168
169
  };
170
+ if (app.package && app.package !== app.package.toUpperCase()) {
171
+ const normalized = app.package.toUpperCase();
172
+ logger?.warn(`Package name '${app.package}' was normalized to '${normalized}'. Lowercase package names may cause deployment failures.`);
173
+ app.package = normalized;
174
+ }
169
175
  const target = mergeTarget(taskConfig.target, options);
170
176
  const config = { app, target, credentials: mergeCredentials(taskConfig, options) };
171
177
  config.test = mergeFlag(options.test, taskConfig.test);
package/dist/cli/index.js CHANGED
@@ -93,7 +93,7 @@ async function prepareRun(cmd) {
93
93
  });
94
94
  // Handle empty config when not passed in
95
95
  const taskConfig = options.config ? await (0, config_1.getDeploymentConfig)(options.config) : {};
96
- const config = await (0, config_1.mergeConfig)(taskConfig, options);
96
+ const config = await (0, config_1.mergeConfig)(taskConfig, options, logger);
97
97
  if (logLevel >= logger_1.LogLevel.Debug) {
98
98
  logger.debug((0, base_1.getConfigForLogging)(config));
99
99
  }
package/package.json CHANGED
@@ -9,7 +9,7 @@
9
9
  "bugs": {
10
10
  "url": "https://github.com/SAP/open-ux-tools/issues?q=is%3Aopen+is%3Aissue+label%3Abug+label%3Adeploy-tooling"
11
11
  },
12
- "version": "0.18.2",
12
+ "version": "0.18.4",
13
13
  "license": "Apache-2.0",
14
14
  "author": "@SAP/ux-tools-team",
15
15
  "main": "dist/index.js",
@@ -26,24 +26,24 @@
26
26
  "!dist/**/*.map"
27
27
  ],
28
28
  "dependencies": {
29
- "axios": "1.13.5",
29
+ "axios": "1.13.6",
30
30
  "commander": "9.4.0",
31
31
  "dotenv": "17.3.1",
32
32
  "prompts": "2.4.2",
33
- "adm-zip": "0.5.10",
33
+ "adm-zip": "0.5.16",
34
34
  "chalk": "4.1.2",
35
- "@sap-ux/axios-extension": "1.25.25",
36
- "@sap-ux/btp-utils": "1.1.10",
37
- "@sap-ux/inquirer-common": "0.11.27",
38
- "@sap-ux/logger": "0.8.2",
39
- "@sap-ux/system-access": "0.7.1",
40
- "@sap-ux/ui5-config": "0.30.0",
41
- "@sap-ux/project-input-validator": "0.6.70"
35
+ "@sap-ux/axios-extension": "1.25.26",
36
+ "@sap-ux/btp-utils": "1.1.11",
37
+ "@sap-ux/inquirer-common": "0.11.28",
38
+ "@sap-ux/logger": "0.8.3",
39
+ "@sap-ux/system-access": "0.7.2",
40
+ "@sap-ux/ui5-config": "0.30.1",
41
+ "@sap-ux/project-input-validator": "0.6.71"
42
42
  },
43
43
  "devDependencies": {
44
- "@types/prompts": "2.4.4",
45
- "@types/adm-zip": "0.5.5",
46
- "@sap-ux/store": "1.5.10"
44
+ "@types/prompts": "2.4.9",
45
+ "@types/adm-zip": "0.5.8",
46
+ "@sap-ux/store": "1.5.11"
47
47
  },
48
48
  "engines": {
49
49
  "node": ">=20.x"