@sap-ux/ui5-application-writer 1.7.19 → 1.8.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.
Files changed (2) hide show
  1. package/dist/options.js +3 -1
  2. package/package.json +4 -4
package/dist/options.js CHANGED
@@ -38,12 +38,14 @@ async function copyTemplates(name, { ui5App, fs, basePath, tmplPath }) {
38
38
  processDestinationPath: utils_1.processDestinationPath
39
39
  });
40
40
  }
41
- else {
41
+ else if (outPath.endsWith('.json')) {
42
+ // Only merge JSON files (e.g., package.json)
42
43
  const add = JSON.parse((0, ejs_1.render)(fs.read(optTmplFilePath), ui5App, {}));
43
44
  const existingFile = JSON.parse(fs.read(outPath));
44
45
  const merged = (0, ui5_config_1.mergeObjects)(existingFile, add);
45
46
  fs.writeJSON(outPath, merged);
46
47
  }
48
+ // For non-JSON files (like .mjs), skip if file already exists
47
49
  });
48
50
  }
49
51
  /**
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": "1.7.19",
12
+ "version": "1.8.0",
13
13
  "license": "Apache-2.0",
14
14
  "main": "dist/index.js",
15
15
  "files": [
@@ -22,7 +22,7 @@
22
22
  "dependencies": {
23
23
  "@ui5/manifest": "1.83.0",
24
24
  "ejs": "3.1.10",
25
- "i18next": "25.8.12",
25
+ "i18next": "25.8.18",
26
26
  "lodash": "4.17.23",
27
27
  "mem-fs": "2.1.0",
28
28
  "mem-fs-editor": "9.4.0",
@@ -37,8 +37,8 @@
37
37
  "@types/mem-fs-editor": "7.0.1",
38
38
  "@types/semver": "7.7.1",
39
39
  "fs-extra": "11.3.4",
40
- "@sap-ux/eslint-plugin-fiori-tools": "9.7.4",
41
- "@sap-ux/project-access": "1.35.12"
40
+ "@sap-ux/eslint-plugin-fiori-tools": "9.9.3",
41
+ "@sap-ux/project-access": "1.35.13"
42
42
  },
43
43
  "engines": {
44
44
  "node": ">=20.x"