@sap-ux/deploy-tooling 0.9.18 → 0.10.0
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/dist/base/deploy.js +5 -2
- package/dist/base/validate.js +8 -3
- package/package.json +9 -9
package/dist/base/deploy.js
CHANGED
|
@@ -207,8 +207,9 @@ function tryDeploy(provider, config, logger, archive) {
|
|
|
207
207
|
// Reset as we dont want other flows kicking it off again!
|
|
208
208
|
config.createTransport = false;
|
|
209
209
|
}
|
|
210
|
+
let validateOutput;
|
|
210
211
|
if (config.test === true) {
|
|
211
|
-
|
|
212
|
+
validateOutput = yield (0, validate_1.validateBeforeDeploy)({
|
|
212
213
|
appName: config.app.name,
|
|
213
214
|
description: (_a = config.app.description) !== null && _a !== void 0 ? _a : '',
|
|
214
215
|
package: (_b = config.app.package) !== null && _b !== void 0 ? _b : '',
|
|
@@ -216,7 +217,9 @@ function tryDeploy(provider, config, logger, archive) {
|
|
|
216
217
|
client: (_d = config.target.client) !== null && _d !== void 0 ? _d : '',
|
|
217
218
|
url: (_e = config.target.url) !== null && _e !== void 0 ? _e : ''
|
|
218
219
|
}, provider, logger);
|
|
219
|
-
|
|
220
|
+
if (!validateOutput.result) {
|
|
221
|
+
logger.info(`Results of validating the deployment configuration settings:${(0, validate_1.formatSummary)(validateOutput.summary)}`);
|
|
222
|
+
}
|
|
220
223
|
}
|
|
221
224
|
const service = getUi5AbapRepositoryService(provider, config, logger);
|
|
222
225
|
yield service.deploy({ archive, bsp: config.app, testMode: config.test, safeMode: config.safe });
|
package/dist/base/validate.js
CHANGED
|
@@ -76,7 +76,7 @@ function formatSummary(summary) {
|
|
|
76
76
|
statusSymbol = (0, chalk_1.yellow)('?');
|
|
77
77
|
break;
|
|
78
78
|
}
|
|
79
|
-
return `${statusSymbol} ${next.message}`;
|
|
79
|
+
return `${' '}${statusSymbol} ${next.message}`;
|
|
80
80
|
})
|
|
81
81
|
.reduce((aggregated, current) => {
|
|
82
82
|
return `${aggregated}${os_1.EOL}${current}`;
|
|
@@ -189,6 +189,11 @@ function validatePackageWithAdt(input, output, provider, logger) {
|
|
|
189
189
|
if (output.result === false) {
|
|
190
190
|
return;
|
|
191
191
|
}
|
|
192
|
+
// ADT expects input package
|
|
193
|
+
let inputPackage = input.package;
|
|
194
|
+
if (inputPackage.toUpperCase() === '$TMP') {
|
|
195
|
+
inputPackage = '$TMP';
|
|
196
|
+
}
|
|
192
197
|
try {
|
|
193
198
|
const adtService = yield provider.getAdtService(axios_extension_1.ListPackageService);
|
|
194
199
|
if (!adtService) {
|
|
@@ -199,8 +204,8 @@ function validatePackageWithAdt(input, output, provider, logger) {
|
|
|
199
204
|
output.result = false;
|
|
200
205
|
return;
|
|
201
206
|
}
|
|
202
|
-
const packages = yield adtService.listPackages({ phrase:
|
|
203
|
-
const isValidPackage = packages.findIndex((packageName) => packageName ===
|
|
207
|
+
const packages = yield adtService.listPackages({ phrase: inputPackage });
|
|
208
|
+
const isValidPackage = packages.findIndex((packageName) => packageName === inputPackage) >= 0;
|
|
204
209
|
if (isValidPackage) {
|
|
205
210
|
output.summary.push({
|
|
206
211
|
message: exports.summaryMessage.packageCheckPass,
|
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.
|
|
12
|
+
"version": "0.10.0",
|
|
13
13
|
"license": "Apache-2.0",
|
|
14
14
|
"author": "@SAP/ux-tools-team",
|
|
15
15
|
"main": "dist/index.js",
|
|
@@ -32,24 +32,24 @@
|
|
|
32
32
|
"prompts": "2.4.2",
|
|
33
33
|
"yazl": "2.5.1",
|
|
34
34
|
"chalk": "4.1.2",
|
|
35
|
-
"@sap-ux/axios-extension": "1.
|
|
36
|
-
"@sap-ux/btp-utils": "0.
|
|
37
|
-
"@sap-ux/logger": "0.
|
|
38
|
-
"@sap-ux/system-access": "0.
|
|
39
|
-
"@sap-ux/ui5-config": "0.
|
|
40
|
-
"@sap-ux/project-input-validator": "0.1.
|
|
35
|
+
"@sap-ux/axios-extension": "1.6.0",
|
|
36
|
+
"@sap-ux/btp-utils": "0.12.0",
|
|
37
|
+
"@sap-ux/logger": "0.4.0",
|
|
38
|
+
"@sap-ux/system-access": "0.3.0",
|
|
39
|
+
"@sap-ux/ui5-config": "0.20.0",
|
|
40
|
+
"@sap-ux/project-input-validator": "0.1.2"
|
|
41
41
|
},
|
|
42
42
|
"devDependencies": {
|
|
43
43
|
"@types/prompts": "2.4.4",
|
|
44
44
|
"@types/yazl": "2.4.2",
|
|
45
|
-
"@sap-ux/store": "0.
|
|
45
|
+
"@sap-ux/store": "0.4.0"
|
|
46
46
|
},
|
|
47
47
|
"ui5": {
|
|
48
48
|
"dependencies": []
|
|
49
49
|
},
|
|
50
50
|
"engines": {
|
|
51
51
|
"pnpm": ">=6.26.1 < 7.0.0 || >=7.1.0",
|
|
52
|
-
"node": ">=
|
|
52
|
+
"node": ">=18.x"
|
|
53
53
|
},
|
|
54
54
|
"scripts": {
|
|
55
55
|
"build": "tsc --build",
|