@sap-ux/deploy-tooling 0.9.18 → 0.9.20

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.
@@ -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
- const validateOutput = yield (0, validate_1.validateBeforeDeploy)({
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
- logger.info((0, validate_1.formatSummary)(validateOutput.summary));
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 });
@@ -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: input.package });
203
- const isValidPackage = packages.findIndex((packageName) => packageName === input.package) >= 0;
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.9.18",
12
+ "version": "0.9.20",
13
13
  "license": "Apache-2.0",
14
14
  "author": "@SAP/ux-tools-team",
15
15
  "main": "dist/index.js",
@@ -35,14 +35,14 @@
35
35
  "@sap-ux/axios-extension": "1.5.1",
36
36
  "@sap-ux/btp-utils": "0.11.9",
37
37
  "@sap-ux/logger": "0.3.9",
38
- "@sap-ux/system-access": "0.2.10",
38
+ "@sap-ux/system-access": "0.2.11",
39
39
  "@sap-ux/ui5-config": "0.19.5",
40
- "@sap-ux/project-input-validator": "0.1.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.3.15"
45
+ "@sap-ux/store": "0.3.16"
46
46
  },
47
47
  "ui5": {
48
48
  "dependencies": []