@sap-ux/adp-tooling 0.18.79 → 0.18.81

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.
@@ -18,6 +18,7 @@ const node_fs_1 = require("node:fs");
18
18
  const node_path_1 = require("node:path");
19
19
  const axios_extension_1 = require("@sap-ux/axios-extension");
20
20
  const project_access_1 = require("@sap-ux/project-access");
21
+ const ADP_CLOUD_PROJECT_BUILD_TASK_NAME = 'app-variant-bundler-build';
21
22
  /**
22
23
  * Get the app descriptor variant.
23
24
  *
@@ -172,7 +173,8 @@ async function getExistingAdpProjectType(basePath) {
172
173
  }
173
174
  const yamlPath = (0, node_path_1.join)(basePath, project_access_1.FileName.Ui5Yaml);
174
175
  const ui5Config = await readUi5Config(basePath, yamlPath);
175
- return ui5Config.hasBuilderKey() ? axios_extension_1.AdaptationProjectType.CLOUD_READY : axios_extension_1.AdaptationProjectType.ON_PREMISE;
176
+ const cloudProjectBuildTask = ui5Config.findCustomTask(ADP_CLOUD_PROJECT_BUILD_TASK_NAME);
177
+ return cloudProjectBuildTask ? axios_extension_1.AdaptationProjectType.CLOUD_READY : axios_extension_1.AdaptationProjectType.ON_PREMISE;
176
178
  }
177
179
  catch {
178
180
  // Expected: Project may not be an ADP project or configuration files may be missing/invalid
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%3Aadp-tooling"
11
11
  },
12
- "version": "0.18.79",
12
+ "version": "0.18.81",
13
13
  "license": "Apache-2.0",
14
14
  "author": "@SAP/ux-tools-team",
15
15
  "main": "dist/index.js",
@@ -36,18 +36,18 @@
36
36
  "prompts": "2.4.2",
37
37
  "sanitize-filename": "1.6.3",
38
38
  "uuid": "10.0.0",
39
- "@sap-ux/axios-extension": "1.25.18",
39
+ "@sap-ux/axios-extension": "1.25.19",
40
40
  "@sap-ux/btp-utils": "1.1.9",
41
41
  "@sap-ux/i18n": "0.3.9",
42
- "@sap-ux/inquirer-common": "0.11.16",
42
+ "@sap-ux/inquirer-common": "0.11.18",
43
43
  "@sap-ux/logger": "0.8.1",
44
44
  "@sap-ux/nodejs-utils": "0.2.16",
45
- "@sap-ux/odata-service-writer": "0.29.28",
46
- "@sap-ux/project-access": "1.35.10",
47
- "@sap-ux/project-input-validator": "0.6.64",
45
+ "@sap-ux/odata-service-writer": "0.29.30",
46
+ "@sap-ux/project-access": "1.35.11",
47
+ "@sap-ux/project-input-validator": "0.6.65",
48
48
  "@sap-ux/store": "1.5.8",
49
- "@sap-ux/system-access": "0.6.60",
50
- "@sap-ux/ui5-config": "0.29.19",
49
+ "@sap-ux/system-access": "0.6.61",
50
+ "@sap-ux/ui5-config": "0.29.20",
51
51
  "@sap-ux/ui5-info": "0.13.13"
52
52
  },
53
53
  "devDependencies": {