@sap-ux/deploy-tooling 0.18.2 → 0.18.3
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 +2 -0
- package/dist/cli/config.d.ts +3 -1
- package/dist/cli/config.js +7 -1
- package/dist/cli/index.js +1 -1
- package/package.json +4 -4
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:
|
package/dist/cli/config.d.ts
CHANGED
|
@@ -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
|
package/dist/cli/config.js
CHANGED
|
@@ -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.
|
|
12
|
+
"version": "0.18.3",
|
|
13
13
|
"license": "Apache-2.0",
|
|
14
14
|
"author": "@SAP/ux-tools-team",
|
|
15
15
|
"main": "dist/index.js",
|
|
@@ -34,11 +34,11 @@
|
|
|
34
34
|
"chalk": "4.1.2",
|
|
35
35
|
"@sap-ux/axios-extension": "1.25.25",
|
|
36
36
|
"@sap-ux/btp-utils": "1.1.10",
|
|
37
|
-
"@sap-ux/inquirer-common": "0.11.27",
|
|
38
37
|
"@sap-ux/logger": "0.8.2",
|
|
39
|
-
"@sap-ux/
|
|
38
|
+
"@sap-ux/inquirer-common": "0.11.27",
|
|
40
39
|
"@sap-ux/ui5-config": "0.30.0",
|
|
41
|
-
"@sap-ux/project-input-validator": "0.6.70"
|
|
40
|
+
"@sap-ux/project-input-validator": "0.6.70",
|
|
41
|
+
"@sap-ux/system-access": "0.7.1"
|
|
42
42
|
},
|
|
43
43
|
"devDependencies": {
|
|
44
44
|
"@types/prompts": "2.4.4",
|