@sap-ux/ui5-application-writer 0.23.5 → 0.24.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/data/defaults.js
CHANGED
|
@@ -79,6 +79,7 @@ function mergeUi5(ui5, options) {
|
|
|
79
79
|
merged.descriptorVersion = getManifestVersion(merged.minUI5Version, ui5.descriptorVersion);
|
|
80
80
|
merged.typesVersion =
|
|
81
81
|
(_d = ui5.typesVersion) !== null && _d !== void 0 ? _d : ((options === null || options === void 0 ? void 0 : options.typescript) ? ui5_config_1.getEsmTypesVersion : ui5_config_1.getTypesVersion)(merged.minUI5Version);
|
|
82
|
+
merged.typesPackage = (0, ui5_config_1.getTypesPackage)(merged.typesVersion);
|
|
82
83
|
merged.ui5Theme = (_e = ui5.ui5Theme) !== null && _e !== void 0 ? _e : 'sap_fiori_3';
|
|
83
84
|
merged.ui5Libs = (0, ui5Libs_1.getUI5Libs)(ui5.ui5Libs);
|
|
84
85
|
return Object.assign({}, ui5, merged);
|
package/dist/index.js
CHANGED
|
@@ -112,10 +112,13 @@ function enableTypescript(basePath, fs) {
|
|
|
112
112
|
const manifest = fs.readJSON(manifestPath);
|
|
113
113
|
const ui5Config = yield ui5_config_1.UI5Config.newInstance(fs.read(ui5ConfigPath));
|
|
114
114
|
const tmplPath = (0, path_1.join)(__dirname, '..', 'templates');
|
|
115
|
+
const typesVersion = (0, ui5_config_1.getEsmTypesVersion)((_b = (_a = manifest['sap.ui5']) === null || _a === void 0 ? void 0 : _a.dependencies) === null || _b === void 0 ? void 0 : _b.minUI5Version);
|
|
116
|
+
const typesPackage = (0, ui5_config_1.getTypesPackage)(typesVersion);
|
|
115
117
|
const ui5App = {
|
|
116
118
|
app: manifest['sap.app'],
|
|
117
119
|
ui5: {
|
|
118
|
-
|
|
120
|
+
typesPackage,
|
|
121
|
+
typesVersion
|
|
119
122
|
}
|
|
120
123
|
};
|
|
121
124
|
yield (0, options_1.enableTypescript)({ basePath, fs, ui5Configs: [ui5Config], tmplPath, ui5App }, true);
|
package/dist/types.d.ts
CHANGED
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%3Aui5-application-writer"
|
|
11
11
|
},
|
|
12
|
-
"version": "0.
|
|
12
|
+
"version": "0.24.0",
|
|
13
13
|
"license": "Apache-2.0",
|
|
14
14
|
"main": "dist/index.js",
|
|
15
15
|
"files": [
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
"@types/semver": "7.3.9",
|
|
39
39
|
"fs-extra": "10.0.0",
|
|
40
40
|
"@sap-ux/eslint-plugin-fiori-tools": "0.2.1",
|
|
41
|
-
"@sap-ux/project-access": "1.
|
|
41
|
+
"@sap-ux/project-access": "1.10.0"
|
|
42
42
|
},
|
|
43
43
|
"engines": {
|
|
44
44
|
"pnpm": ">=6.26.1 < 7.0.0 || >=7.1.0",
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
"prebuild": "npm run ts-typecheck"
|
|
7
7
|
},
|
|
8
8
|
"devDependencies": {
|
|
9
|
-
"
|
|
9
|
+
"<%- ui5.typesPackage %>": "<%- ui5.typesVersion %>",
|
|
10
10
|
"ui5-tooling-transpile": "^0.7.10",
|
|
11
11
|
"typescript": "^4.6.3",
|
|
12
12
|
"@typescript-eslint/eslint-plugin": "^5.59.0",
|