@sap-ux/deploy-tooling 0.11.10 → 0.13.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.
@@ -241,7 +241,12 @@ function tryDeploy(provider, config, logger, archive) {
241
241
  logger.info(`Results of validating the deployment configuration settings:${(0, validate_1.formatSummary)(validateOutput.summary)}`);
242
242
  }
243
243
  const service = getDeployService(provider.getUi5AbapRepository.bind(provider), config, logger);
244
- yield service.deploy({ archive, bsp: config.app, testMode: config.test, safeMode: config.safe });
244
+ yield service.deploy({
245
+ archive,
246
+ bsp: config.app,
247
+ testMode: config.test,
248
+ safeMode: config.safe
249
+ });
245
250
  }
246
251
  else {
247
252
  yield tryDeployToLrep(provider, config, logger, archive);
@@ -251,6 +256,9 @@ function tryDeploy(provider, config, logger, archive) {
251
256
  }
252
257
  else {
253
258
  logger.info('Deployment Successful.');
259
+ if (yield (0, validate_1.showAdditionalInfoForOnPrem)(`${config.target.destination}`)) {
260
+ logger.info('(Note: As the destination is configured using an On-Premise SAP Cloud Connector, you will need to replace the host in the URL above with the internal host)');
261
+ }
254
262
  }
255
263
  }
256
264
  catch (error) {
@@ -52,4 +52,12 @@ export declare function validateBeforeDeploy(config: AbapDeployConfig, provider:
52
52
  * @returns Formatted summary string
53
53
  */
54
54
  export declare function formatSummary(summary: SummaryRecord[]): string;
55
+ /**
56
+ * Returns true if specified destination is on-premise and if environment is App Studio
57
+ * to show additional info.
58
+ *
59
+ * @param destination Indentifier for destination to be checked.
60
+ * @returns Promise boolean.
61
+ */
62
+ export declare function showAdditionalInfoForOnPrem(destination: string): Promise<boolean>;
55
63
  //# sourceMappingURL=validate.d.ts.map
@@ -9,7 +9,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
9
9
  });
10
10
  };
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
- exports.formatSummary = exports.validateBeforeDeploy = exports.summaryMessage = exports.SummaryStatus = void 0;
12
+ exports.showAdditionalInfoForOnPrem = exports.formatSummary = exports.validateBeforeDeploy = exports.summaryMessage = exports.SummaryStatus = void 0;
13
13
  const axios_extension_1 = require("@sap-ux/axios-extension");
14
14
  const chalk_1 = require("chalk");
15
15
  const project_input_validator_1 = require("@sap-ux/project-input-validator");
@@ -344,4 +344,22 @@ function validateTransportRequestWithAdt(input, output, provider, logger) {
344
344
  }
345
345
  });
346
346
  }
347
+ /**
348
+ * Returns true if specified destination is on-premise and if environment is App Studio
349
+ * to show additional info.
350
+ *
351
+ * @param destination Indentifier for destination to be checked.
352
+ * @returns Promise boolean.
353
+ */
354
+ function showAdditionalInfoForOnPrem(destination) {
355
+ return __awaiter(this, void 0, void 0, function* () {
356
+ let showInfo = false;
357
+ if ((0, btp_utils_1.isAppStudio)() && destination) {
358
+ const destinations = yield (0, btp_utils_1.listDestinations)();
359
+ showInfo = (0, btp_utils_1.isOnPremiseDestination)(destinations[destination]);
360
+ }
361
+ return showInfo;
362
+ });
363
+ }
364
+ exports.showAdditionalInfoForOnPrem = showAdditionalInfoForOnPrem;
347
365
  //# sourceMappingURL=validate.js.map
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.11.10",
12
+ "version": "0.13.0",
13
13
  "license": "Apache-2.0",
14
14
  "author": "@SAP/ux-tools-team",
15
15
  "main": "dist/index.js",
@@ -32,10 +32,10 @@
32
32
  "prompts": "2.4.2",
33
33
  "adm-zip": "0.5.10",
34
34
  "chalk": "4.1.2",
35
- "@sap-ux/axios-extension": "1.8.1",
36
- "@sap-ux/btp-utils": "0.12.1",
35
+ "@sap-ux/axios-extension": "1.10.0",
36
+ "@sap-ux/btp-utils": "0.13.0",
37
37
  "@sap-ux/logger": "0.4.0",
38
- "@sap-ux/system-access": "0.3.7",
38
+ "@sap-ux/system-access": "0.3.9",
39
39
  "@sap-ux/ui5-config": "0.21.0",
40
40
  "@sap-ux/project-input-validator": "0.2.1"
41
41
  },