@sap-ux/fiori-elements-writer 0.17.4 → 0.18.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/index.js +4 -2
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -133,8 +133,10 @@ function generate(basePath, data, fs) {
|
|
|
133
133
|
// Update manifest.json with template specific settings
|
|
134
134
|
(0, manifestSettings_1.extendManifestJson)(fs, basePath, rootTemplatesPath, feApp);
|
|
135
135
|
const packageJson = JSON.parse(fs.read(packagePath));
|
|
136
|
-
// Add tests only if v4, for now, and we have metadata (and therefore a mock server config)
|
|
137
|
-
const addTest = !!feApp.appOptions.addTests &&
|
|
136
|
+
// Add tests only if v4, for now, and we have metadata (and therefore a mock server config) or has a cds service
|
|
137
|
+
const addTest = !!feApp.appOptions.addTests &&
|
|
138
|
+
((_g = feApp.service) === null || _g === void 0 ? void 0 : _g.version) === odata_service_writer_1.OdataVersion.v4 &&
|
|
139
|
+
(!!((_h = feApp.service) === null || _h === void 0 ? void 0 : _h.metadata) || feApp.service.type === odata_service_writer_1.ServiceType.CDS);
|
|
138
140
|
packageJson.scripts = Object.assign(packageJson.scripts || {}, Object.assign({}, (0, packageConfig_1.getPackageJsonTasks)({
|
|
139
141
|
localOnly: !((_j = feApp.service) === null || _j === void 0 ? void 0 : _j.url),
|
|
140
142
|
addMock: !!((_k = feApp.service) === null || _k === void 0 ? void 0 : _k.metadata),
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sap-ux/fiori-elements-writer",
|
|
3
3
|
"description": "SAP Fiori elements application writer",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.18.0",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
7
7
|
"url": "https://github.com/SAP/open-ux-tools.git",
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
"mem-fs-editor": "9.4.0",
|
|
28
28
|
"read-pkg-up": "7.0.1",
|
|
29
29
|
"semver": "7.5.4",
|
|
30
|
-
"@sap-ux/odata-service-writer": "0.
|
|
30
|
+
"@sap-ux/odata-service-writer": "0.16.0",
|
|
31
31
|
"@sap-ux/ui5-application-writer": "0.26.2",
|
|
32
32
|
"@sap-ux/fe-fpm-writer": "0.24.2",
|
|
33
33
|
"@sap-ux/ui5-config": "0.21.0",
|