@sap-ux/odata-service-writer 0.14.7 → 0.14.8

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/index.js +2 -2
  2. package/package.json +2 -2
package/dist/index.js CHANGED
@@ -112,7 +112,7 @@ function generate(basePath, service, fs) {
112
112
  // Add mockserver entries
113
113
  if (service.metadata) {
114
114
  // copy existing `ui5.yaml` as starting point for ui5-mock.yaml
115
- if (ui5Config) {
115
+ if (paths.ui5Yaml && ui5Config) {
116
116
  const ui5MockConfig = yield ui5_config_1.UI5Config.newInstance(ui5Config.toString());
117
117
  ui5MockConfig.addMockServerMiddleware(service.path);
118
118
  fs.write(path_1.join(path_1.dirname(paths.ui5Yaml), 'ui5-mock.yaml'), ui5MockConfig.toString());
@@ -133,7 +133,7 @@ function generate(basePath, service, fs) {
133
133
  if (paths.packageJson && paths.ui5Yaml) {
134
134
  updates_1.updatePackageJson(paths.packageJson, fs, !!service.metadata);
135
135
  }
136
- if (ui5LocalConfig) {
136
+ if (ui5LocalConfigPath && ui5LocalConfig) {
137
137
  fs.write(ui5LocalConfigPath, ui5LocalConfig.toString());
138
138
  }
139
139
  if ((_a = service.annotations) === null || _a === void 0 ? void 0 : _a.xml) {
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%3Aodata-service-writer"
11
11
  },
12
- "version": "0.14.7",
12
+ "version": "0.14.8",
13
13
  "license": "Apache-2.0",
14
14
  "main": "dist/index.js",
15
15
  "files": [
@@ -41,7 +41,7 @@
41
41
  "node": ">= 14.16.0 < 15.0.0 || >=16.1.0 < 17.0.0 || >=18.0.0 < 19.0.0"
42
42
  },
43
43
  "scripts": {
44
- "build": "pnpm clean && tsc",
44
+ "build": "pnpm clean && tsc -p tsconfig-build.json",
45
45
  "clean": "rimraf dist test/test-output coverage",
46
46
  "format": "prettier --write '**/*.{js,json,ts,yaml,yml}' --ignore-path ../../.prettierignore",
47
47
  "lint": "eslint . --ext .ts",