@sap-ux/fiori-migration-writer 1.2.0 → 1.2.1

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.
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Helper functions for generating VS Code launch configuration during migration
3
3
  */
4
- import { basename, join, sep as pathSep } from 'node:path';
4
+ import { basename } from 'node:path';
5
5
  import { isAppStudio } from '@sap-ux/btp-utils';
6
6
  import { FioriElementsVersion } from '../project-spec-types.js';
7
7
  import { createLaunchConfig } from '@sap-ux/launch-config';
@@ -17,9 +17,9 @@ import { ODataVersion } from '@sap-ux/axios-extension';
17
17
  * @param flpSandboxAvailable - Whether FLP sandbox is available
18
18
  */
19
19
  export async function generateLaunchConfiguration(fs, projectInfo, vscode, appIntent, appMockIntent, flpSandboxAvailable) {
20
- const projectName = projectInfo.rootPath.split(pathSep).pop();
21
- const targetFolder = join(projectInfo.rootPath, '..');
22
- const projectPath = join(targetFolder, projectName);
20
+ // projectInfo.rootPath is already the full path to the project
21
+ const projectPath = projectInfo.rootPath;
22
+ const projectName = basename(projectPath);
23
23
  // Build debug options for launch config
24
24
  const debugOptions = {
25
25
  vscode: vscode,
@@ -38,7 +38,7 @@ export async function generateLaunchConfiguration(fs, projectInfo, vscode, appIn
38
38
  }
39
39
  // Build Fiori options
40
40
  const fioriOptions = {
41
- name: basename(projectPath),
41
+ name: projectName,
42
42
  projectRoot: projectPath,
43
43
  debugOptions
44
44
  };
package/package.json CHANGED
@@ -10,7 +10,7 @@
10
10
  "bugs": {
11
11
  "url": "https://github.com/SAP/open-ux-tools/issues?q=is%3Aopen+is%3Aissue+label%3Abug+label%3Afiori-migration-writer"
12
12
  },
13
- "version": "1.2.0",
13
+ "version": "1.2.1",
14
14
  "license": "Apache-2.0",
15
15
  "main": "dist/index.js",
16
16
  "files": [
@@ -38,16 +38,16 @@
38
38
  "vscode-uri": "3.2.0",
39
39
  "yaml": "2.9.1",
40
40
  "@sap-ux/adp-tooling": "1.2.2",
41
- "@sap-ux/axios-extension": "2.1.6",
42
41
  "@sap-ux/btp-utils": "2.0.8",
42
+ "@sap-ux/i18n": "1.0.7",
43
+ "@sap-ux/axios-extension": "2.1.6",
44
+ "@sap-ux/launch-config": "1.0.28",
43
45
  "@sap-ux/nodejs-utils": "1.0.14",
44
- "@sap-ux/project-access": "2.3.4",
45
46
  "@sap-ux/store": "2.0.8",
46
- "@sap-ux/ui5-config": "1.0.11",
47
47
  "@sap-ux/ui5-application-writer": "2.1.7",
48
- "@sap-ux/ui5-info": "1.0.7",
49
- "@sap-ux/i18n": "1.0.7",
50
- "@sap-ux/launch-config": "1.0.28"
48
+ "@sap-ux/ui5-config": "1.0.11",
49
+ "@sap-ux/project-access": "2.3.4",
50
+ "@sap-ux/ui5-info": "1.0.7"
51
51
  },
52
52
  "devDependencies": {
53
53
  "@jest/globals": "30.5.2",