@sap-ux/adp-tooling 0.12.5 → 0.12.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.
package/dist/types.d.ts CHANGED
@@ -344,7 +344,6 @@ export interface AdpProjectData {
344
344
  name: string;
345
345
  layer: UI5FlexLayer;
346
346
  environment: string;
347
- safeMode: boolean;
348
347
  sourceSystem: string;
349
348
  applicationIdx: string;
350
349
  reference: string;
@@ -8,9 +8,8 @@ exports.enhanceManifestChangeContentWithFlpConfig = exports.enhanceUI5DeployYaml
8
8
  * @param config full project configuration
9
9
  */
10
10
  function enhanceUI5Yaml(ui5Config, config) {
11
- ui5Config.setConfiguration({ propertiesFileSourceEncoding: 'UTF-8' });
12
11
  if (config.options?.fioriTools) {
13
- addFioriToolsMiddlwares(ui5Config, config);
12
+ addFioriToolsMiddlewares(ui5Config, config);
14
13
  }
15
14
  else {
16
15
  addOpenSourceMiddlewares(ui5Config, config);
@@ -67,7 +66,7 @@ exports.enhanceUI5DeployYaml = enhanceUI5DeployYaml;
67
66
  * @param ui5Config configuration representing the ui5.yaml
68
67
  * @param config full project configuration
69
68
  */
70
- function addFioriToolsMiddlwares(ui5Config, config) {
69
+ function addFioriToolsMiddlewares(ui5Config, config) {
71
70
  const backendConfig = { ...config.target };
72
71
  backendConfig.url ??= 'https://REQUIRED_FOR_VSCODE.example';
73
72
  backendConfig.path = '/sap';
@@ -90,7 +89,7 @@ function addFioriToolsMiddlwares(ui5Config, config) {
90
89
  version: config?.ui5?.minVersion ?? '' //default to latest if version is not set
91
90
  },
92
91
  backend: [backendConfig]
93
- });
92
+ }, 'fiori-tools-preview');
94
93
  }
95
94
  /**
96
95
  * Get a list of required middlewares using the open source middlewares.
@@ -57,8 +57,9 @@ async function writeUI5Yaml(projectPath, data, fs) {
57
57
  const ui5ConfigPath = (0, path_1.join)(projectPath, 'ui5.yaml');
58
58
  const baseUi5ConfigContent = fs.read(ui5ConfigPath);
59
59
  const ui5Config = await ui5_config_1.UI5Config.newInstance(baseUi5ConfigContent);
60
- (0, options_1.enhanceUI5Yaml)(ui5Config, data);
60
+ ui5Config.setConfiguration({ propertiesFileSourceEncoding: 'UTF-8' });
61
61
  (0, options_1.enhanceUI5YamlWithCustomConfig)(ui5Config, data?.customConfig);
62
+ (0, options_1.enhanceUI5Yaml)(ui5Config, data);
62
63
  if (data.customConfig?.adp?.environment === 'C') {
63
64
  (0, options_1.enhanceUI5YamlWithCustomTask)(ui5Config, data);
64
65
  }
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%3Aadp-tooling"
11
11
  },
12
- "version": "0.12.5",
12
+ "version": "0.12.8",
13
13
  "license": "Apache-2.0",
14
14
  "author": "@SAP/ux-tools-team",
15
15
  "main": "dist/index.js",
@@ -36,9 +36,9 @@
36
36
  "@sap-ux/btp-utils": "0.15.0",
37
37
  "@sap-ux/inquirer-common": "0.4.0",
38
38
  "@sap-ux/logger": "0.6.0",
39
- "@sap-ux/project-access": "1.25.1",
39
+ "@sap-ux/project-access": "1.25.3",
40
40
  "@sap-ux/system-access": "0.5.1",
41
- "@sap-ux/ui5-config": "0.23.0"
41
+ "@sap-ux/ui5-config": "0.23.1"
42
42
  },
43
43
  "devDependencies": {
44
44
  "@types/adm-zip": "0.5.5",