@sap-ux/ui5-application-writer 0.23.4 → 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.
@@ -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
- 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)
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
@@ -43,6 +43,7 @@ export interface UI5 {
43
43
  version: string;
44
44
  localVersion: string;
45
45
  typesVersion: string;
46
+ typesPackage: string;
46
47
  descriptorVersion: string;
47
48
  ui5Libs: string | string[];
48
49
  ui5Theme: string;
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.23.4",
12
+ "version": "0.24.0",
13
13
  "license": "Apache-2.0",
14
14
  "main": "dist/index.js",
15
15
  "files": [
@@ -27,7 +27,7 @@
27
27
  "mem-fs": "2.1.0",
28
28
  "mem-fs-editor": "9.4.0",
29
29
  "semver": "7.5.3",
30
- "@sap-ux/ui5-config": "0.18.1"
30
+ "@sap-ux/ui5-config": "0.18.2"
31
31
  },
32
32
  "devDependencies": {
33
33
  "@types/ejs": "3.1.0",
@@ -37,8 +37,8 @@
37
37
  "@types/mem-fs-editor": "7.0.1",
38
38
  "@types/semver": "7.3.9",
39
39
  "fs-extra": "10.0.0",
40
- "@sap-ux/eslint-plugin-fiori-tools": "0.2.0",
41
- "@sap-ux/project-access": "1.8.3"
40
+ "@sap-ux/eslint-plugin-fiori-tools": "0.2.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",
@@ -47,7 +47,7 @@
47
47
  "scripts": {
48
48
  "build": "tsc --build",
49
49
  "watch": "tsc --watch",
50
- "clean": "rimraf dist test/test-output coverage *.tsbuildinfo",
50
+ "clean": "rimraf --glob dist test/test-output coverage *.tsbuildinfo",
51
51
  "format": "prettier --write '**/*.{js,json,ts,yaml,yml}' --ignore-path ../../.prettierignore",
52
52
  "lint": "eslint . --ext .ts",
53
53
  "lint:fix": "eslint . --ext .ts --fix",
@@ -6,7 +6,7 @@
6
6
  "prebuild": "npm run ts-typecheck"
7
7
  },
8
8
  "devDependencies": {
9
- "@sapui5/ts-types-esm": "<%- ui5.typesVersion %>",
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",
@@ -15,7 +15,7 @@
15
15
  ]
16
16
  },
17
17
  "types": [
18
- "@sapui5/ts-types-esm"
18
+ "<%- ui5.typesPackage %>"
19
19
  ]
20
20
  },
21
21
  "include": [