@sap-ux/app-config-writer 0.6.18 → 0.6.19

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.
@@ -63,11 +63,11 @@ async function updatePackageJson(basePath, fs, yamlPath, logger) {
63
63
  const packageJson = (fs.readJSON(packageJsonPath) ?? {});
64
64
  const ui5YamlFile = yamlPath ? (0, path_1.basename)(yamlPath) : project_access_1.FileName.Ui5Yaml;
65
65
  const ui5YamlConfig = await (0, project_access_1.readUi5Yaml)(basePath, ui5YamlFile, fs);
66
- const previewMiddleware = await (0, utils_1.getPreviewMiddleware)(ui5YamlConfig, basePath, yamlPath, fs);
66
+ const previewMiddleware = await (0, utils_1.getPreviewMiddleware)(ui5YamlConfig, basePath, ui5YamlFile, fs);
67
67
  const intent = (0, utils_1.getIntentFromPreviewConfig)(previewMiddleware?.configuration) ?? '#app-preview';
68
68
  const cardGeneratorPath = previewMiddleware?.configuration?.editors?.cardGenerator?.path ??
69
69
  '/test/flpCardGeneratorSandbox.html';
70
- const cliForPreview = await (0, utils_1.getCLIForPreview)(basePath, yamlPath ?? '', fs);
70
+ const cliForPreview = await (0, utils_1.getCLIForPreview)(basePath, ui5YamlFile, fs);
71
71
  packageJson.scripts ??= {};
72
72
  packageJson.scripts['start-cards-generator'] = `${cliForPreview} --open "${cardGeneratorPath}${intent}"`;
73
73
  if (packageJson.devDependencies?.[DEPENDENCY_NAME]) {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@sap-ux/app-config-writer",
3
3
  "description": "Add or update configuration for SAP Fiori tools application",
4
- "version": "0.6.18",
4
+ "version": "0.6.19",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "https://github.com/SAP/open-ux-tools.git",
@@ -31,8 +31,8 @@
31
31
  "@sap-ux/btp-utils": "1.1.0",
32
32
  "@sap-ux/logger": "0.7.0",
33
33
  "@sap-ux/project-access": "1.30.4",
34
- "@sap-ux/store": "1.1.1",
35
- "@sap-ux/ui5-config": "0.28.3"
34
+ "@sap-ux/ui5-config": "0.28.3",
35
+ "@sap-ux/store": "1.1.1"
36
36
  },
37
37
  "devDependencies": {
38
38
  "@types/ejs": "3.1.2",