@sap-ux/repo-app-import-sub-generator 0.1.3 → 0.1.4
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.
|
@@ -13,6 +13,7 @@ const prompt_state_1 = require("../prompts/prompt-state");
|
|
|
13
13
|
const logger_1 = __importDefault(require("../utils/logger"));
|
|
14
14
|
const project_access_1 = require("@sap-ux/project-access");
|
|
15
15
|
const path_1 = require("path");
|
|
16
|
+
const ui5_info_1 = require("@sap-ux/ui5-info");
|
|
16
17
|
/**
|
|
17
18
|
* Generates the deployment configuration for an ABAP application.
|
|
18
19
|
*
|
|
@@ -74,6 +75,9 @@ async function getAppConfig(app, extractedProjectPath, qfaJson, fs) {
|
|
|
74
75
|
: odata_service_inquirer_1.OdataVersion.v2;
|
|
75
76
|
// Fetch metadata for the service
|
|
76
77
|
const metadata = await fetchServiceMetadata(serviceProvider, manifest?.['sap.app']?.dataSources?.mainService.uri ?? '');
|
|
78
|
+
// Fetch latest UI5 versions from npm
|
|
79
|
+
const ui5Versions = await (0, ui5_info_1.getUI5Versions)({ onlyNpmVersion: true });
|
|
80
|
+
const localVersion = ui5Versions[0]?.version;
|
|
77
81
|
const appConfig = {
|
|
78
82
|
app: {
|
|
79
83
|
id: app.appId,
|
|
@@ -109,6 +113,9 @@ async function getAppConfig(app, extractedProjectPath, qfaJson, fs) {
|
|
|
109
113
|
appOptions: {
|
|
110
114
|
addAnnotations: odataVersion === odata_service_inquirer_1.OdataVersion.v4,
|
|
111
115
|
addTests: true
|
|
116
|
+
},
|
|
117
|
+
ui5: {
|
|
118
|
+
localVersion
|
|
112
119
|
}
|
|
113
120
|
};
|
|
114
121
|
return appConfig;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sap-ux/repo-app-import-sub-generator",
|
|
3
3
|
"description": "Generator to download LROP Fiori applications deployed from an ABAP repository.",
|
|
4
|
-
"version": "0.1.
|
|
4
|
+
"version": "0.1.4",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
7
7
|
"url": "https://github.com/SAP/open-ux-tools.git",
|
|
@@ -28,16 +28,16 @@
|
|
|
28
28
|
"@sap-ux/fiori-generator-shared": "0.10.2",
|
|
29
29
|
"@sap-ux/inquirer-common": "0.6.36",
|
|
30
30
|
"@sap-ux/project-access": "1.29.18",
|
|
31
|
-
"@sap-ux/odata-service-inquirer": "2.2.36",
|
|
32
31
|
"@sap-ux/fiori-elements-writer": "2.1.40",
|
|
33
32
|
"@sap-ux/logger": "0.6.0",
|
|
33
|
+
"@sap-ux/odata-service-inquirer": "2.2.36",
|
|
34
34
|
"@sap-ux/project-input-validator": "0.5.1",
|
|
35
|
-
"@sap-ux/launch-config": "0.8.1",
|
|
36
35
|
"@sap-ux/fiori-tools-settings": "0.1.0",
|
|
37
36
|
"@sap-ux/abap-deploy-config-writer": "0.0.103",
|
|
37
|
+
"@sap-ux/launch-config": "0.8.1",
|
|
38
38
|
"@sap-ux/btp-utils": "1.0.3",
|
|
39
|
-
"@sap-ux/ui5-info": "0.9.1",
|
|
40
39
|
"@sap-ux/axios-extension": "1.20.0",
|
|
40
|
+
"@sap-ux/ui5-info": "0.9.1",
|
|
41
41
|
"@sap-ux/store": "1.0.0",
|
|
42
42
|
"@sap-ux/guided-answers-helper": "0.2.2"
|
|
43
43
|
},
|