@sap-ux/launch-config 1.0.28 → 1.0.30

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 +1 @@
1
- {"version":3,"file":"create.d.ts","sourceRoot":"","sources":["../../src/launch-config-crud/create.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EACR,YAAY,EAEZ,4BAA4B,EAG/B,MAAM,mBAAmB,CAAC;AAC3B,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAM5C,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AA2F7C;;;;;;;;;;GAUG;AACH,wBAAgB,8BAA8B,CAAC,sBAAsB,CAAC,EAAE,4BAA4B,GAAG,IAAI,CAW1G;AA6DD;;;;;;;;GAQG;AACH,wBAAsB,kBAAkB,CACpC,UAAU,EAAE,MAAM,EAClB,YAAY,EAAE,YAAY,EAC1B,EAAE,CAAC,EAAE,MAAM,EACX,MAAM,CAAC,EAAE,MAAM,GAChB,OAAO,CAAC,MAAM,CAAC,CAUjB"}
1
+ {"version":3,"file":"create.d.ts","sourceRoot":"","sources":["../../src/launch-config-crud/create.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EACR,YAAY,EAEZ,4BAA4B,EAG/B,MAAM,mBAAmB,CAAC;AAC3B,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAO5C,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAyI7C;;;;;;;;;;GAUG;AACH,wBAAgB,8BAA8B,CAAC,sBAAsB,CAAC,EAAE,4BAA4B,GAAG,IAAI,CAW1G;AA+DD;;;;;;;;GAQG;AACH,wBAAsB,kBAAkB,CACpC,UAAU,EAAE,MAAM,EAClB,YAAY,EAAE,YAAY,EAC1B,EAAE,CAAC,EAAE,MAAM,EACX,MAAM,CAAC,EAAE,MAAM,GAChB,OAAO,CAAC,MAAM,CAAC,CAUjB"}
@@ -5,10 +5,11 @@ import { DirName } from '@sap-ux/project-access';
5
5
  import { LAUNCH_JSON_FILE } from '../types/index.js';
6
6
  import { generateNewFioriLaunchConfig } from './utils.js';
7
7
  import { updateLaunchJSON } from './writer.js';
8
- import { parse } from 'jsonc-parser';
8
+ import { applyEdits, modify, parse, stripComments } from 'jsonc-parser';
9
9
  import { handleWorkspaceConfig } from '../debug-config/workspaceManager.js';
10
10
  import { configureLaunchJsonFile } from '../debug-config/config.js';
11
11
  import { t } from '../i18n.js';
12
+ const LAUNCH_JSON_VERSION = '0.2.0';
12
13
  /**
13
14
  * Writes the `launch.json` file with the specified configurations. If the file already exists, it will be overwritten.
14
15
  *
@@ -18,9 +19,59 @@ import { t } from '../i18n.js';
18
19
  * @returns {void}
19
20
  */
20
21
  function writeLaunchJsonFile(fs, launchJSONPath, configurations) {
21
- const newLaunchJSONContent = { version: '0.2.0', configurations };
22
+ const newLaunchJSONContent = { version: LAUNCH_JSON_VERSION, configurations };
22
23
  fs.write(launchJSONPath, JSON.stringify(newLaunchJSONContent, null, 4));
23
24
  }
25
+ /**
26
+ * Makes sure that an existing `launch.json` has a `configurations` array, so new configurations can be added to it.
27
+ * A file that is empty, contains only comments or has no `configurations` (for example `{}`) is completed, its
28
+ * existing content and comments are kept.
29
+ *
30
+ * @param fs - The file system editor used to read and write the `launch.json` file.
31
+ * @param launchJSONPath - The full path to the `launch.json` file.
32
+ * @returns The number of launch configurations the file contains.
33
+ * @throws If the file has a `configurations` property that is not an array or if the file is malformed.
34
+ */
35
+ function ensureConfigurationsArray(fs, launchJSONPath) {
36
+ const content = fs.read(launchJSONPath);
37
+ const errors = [];
38
+ // Allow trailing commas since .vscode/launch.json is a JSONC file
39
+ const launchJson = parse(content, errors, { allowTrailingComma: true });
40
+ // Check if the file is truly empty (only whitespace and/or comments)
41
+ // Strip BOM (U+FEFF) before checking if content is empty
42
+ const strippedContent = stripComments(content)
43
+ .replace(/^\uFEFF/, '')
44
+ .trim();
45
+ const isEmptyOrCommentsOnly = strippedContent.length === 0;
46
+ // Filter out BOM error (error code 1 at offset 0) - it's recoverable
47
+ const nonRecoverableErrors = errors.filter((e) => !(e.error === 1 && e.offset === 0));
48
+ // If there are non-recoverable parse errors and the file is not empty/comments-only, throw an error
49
+ if (nonRecoverableErrors.length > 0 && !isEmptyOrCommentsOnly) {
50
+ throw new Error(t('error.malformedLaunchJson', { file: launchJSONPath, interpolation: { escapeValue: false } }));
51
+ }
52
+ const formattingOptions = { tabSize: 4, insertSpaces: true };
53
+ if (typeof launchJson !== 'object' || launchJson === null || Array.isArray(launchJson)) {
54
+ const completed = { version: LAUNCH_JSON_VERSION, configurations: [] };
55
+ fs.write(launchJSONPath, applyEdits(content, modify(content, [], completed, { formattingOptions })));
56
+ return 0;
57
+ }
58
+ const { version, configurations } = launchJson;
59
+ if (configurations !== undefined && configurations !== null && !Array.isArray(configurations)) {
60
+ throw new Error(t('error.invalidConfigurations', { file: launchJSONPath, interpolation: { escapeValue: false } }));
61
+ }
62
+ if (Array.isArray(configurations) && version !== undefined) {
63
+ return configurations.length;
64
+ }
65
+ let updated = content;
66
+ if (version === undefined) {
67
+ updated = applyEdits(updated, modify(updated, ['version'], LAUNCH_JSON_VERSION, { formattingOptions }));
68
+ }
69
+ if (!Array.isArray(configurations)) {
70
+ updated = applyEdits(updated, modify(updated, ['configurations'], [], { formattingOptions }));
71
+ }
72
+ fs.write(launchJSONPath, updated);
73
+ return Array.isArray(configurations) ? configurations.length : 0;
74
+ }
24
75
  /**
25
76
  * Handles the case where there are no debug options provided. It either enhances an existing `launch.json`
26
77
  * file with a new launch configuration or creates a new `launch.json` file with the initial configuration.
@@ -36,9 +87,8 @@ async function handleNoDebugOptions(rootFolder, fioriOptions, fs) {
36
87
  if (fs.exists(launchJsonWritePath)) {
37
88
  // launch.json exists, enhance existing file with new config
38
89
  const launchConfig = generateNewFioriLaunchConfig(rootFolder, fioriOptions);
39
- const launchJsonString = fs.read(launchJsonWritePath);
40
- const launchJson = parse(launchJsonString);
41
- await updateLaunchJSON(launchConfig, launchJsonWritePath, ['configurations', launchJson.configurations.length + 1], {
90
+ const configurationCount = ensureConfigurationsArray(fs, launchJsonWritePath);
91
+ await updateLaunchJSON(launchConfig, launchJsonWritePath, ['configurations', configurationCount + 1], {
42
92
  isArrayInsertion: true
43
93
  }, fs);
44
94
  return fs;
@@ -49,33 +99,19 @@ async function handleNoDebugOptions(rootFolder, fioriOptions, fs) {
49
99
  return fs;
50
100
  }
51
101
  /**
52
- * Updates or replaces the `launch.json` file depending on whether the file should be replaced
53
- * or enhanced with additional configurations. If `replaceWithNew` is true, the entire file
54
- * content is replaced with the new configurations. Otherwise, the configurations are added
55
- * to the existing `launch.json`.
102
+ * Adds launch configurations to an existing `launch.json` file. Existing configurations are kept.
56
103
  *
57
104
  * @param {Editor} fs - The file system editor to read and write the `launch.json` file.
58
105
  * @param {string} launchJSONPath - The path to the existing `launch.json` file.
59
- * @param {LaunchConfig[]} configurations - An array of new launch configurations to be added or replaced.
60
- * @param {boolean} replaceWithNew - A flag indicating whether to replace the existing `launch.json`
61
- * with new configurations (`true`) or append to the existing ones (`false`).
62
- * @returns {Promise<void>} - A promise that resolves once the `launch.json` file has been updated or replaced.
106
+ * @param {LaunchConfig[]} configurations - An array of new launch configurations to be added.
107
+ * @returns {Promise<void>} - A promise that resolves once the configurations have been added to the file.
63
108
  */
64
- async function handleExistingLaunchJson(fs, launchJSONPath, configurations, replaceWithNew = false) {
65
- const launchJsonString = fs.read(launchJSONPath);
66
- const launchJson = parse(launchJsonString);
67
- if (replaceWithNew) {
68
- // replaceWithNew is needed in cases where launch config exists in
69
- // `.vscode` but isn't added to the workspace. If `replaceWithNew` is `true`, it indicates that the app is not
70
- // in the workspace, so the entire `launch.json` and replaced since launch config is then generated in app folder.
71
- writeLaunchJsonFile(fs, launchJSONPath, configurations);
72
- }
73
- else {
74
- for (const config of configurations) {
75
- await updateLaunchJSON(config, launchJSONPath, ['configurations', launchJson.configurations.length + 1], {
76
- isArrayInsertion: true
77
- }, fs);
78
- }
109
+ async function addConfigurationsToLaunchJson(fs, launchJSONPath, configurations) {
110
+ const configurationCount = ensureConfigurationsArray(fs, launchJSONPath);
111
+ for (const config of configurations) {
112
+ await updateLaunchJSON(config, launchJSONPath, ['configurations', configurationCount + 1], {
113
+ isArrayInsertion: true
114
+ }, fs);
79
115
  }
80
116
  }
81
117
  /**
@@ -125,11 +161,13 @@ async function handleDebugOptions(rootFolder, fs, debugOptions, { startFile, ena
125
161
  npmCommand
126
162
  }));
127
163
  const launchJsonWritePath = join(launchJsonPath, DirName.VSCode, LAUNCH_JSON_FILE);
128
- if (fs.exists(launchJsonWritePath)) {
129
- await handleExistingLaunchJson(fs, launchJsonWritePath, configurations, appNotInWorkspace);
164
+ if (!fs.exists(launchJsonWritePath) || appNotInWorkspace) {
165
+ // An existing `launch.json` is replaced if it is in `.vscode` but the app is not added to the workspace,
166
+ // since the launch config is then generated in the app folder.
167
+ writeLaunchJsonFile(fs, launchJsonWritePath, configurations);
130
168
  }
131
169
  else {
132
- writeLaunchJsonFile(fs, launchJsonWritePath, configurations);
170
+ await addConfigurationsToLaunchJson(fs, launchJsonWritePath, configurations);
133
171
  }
134
172
  // Conditionally update workspace folders based on the enableVSCodeReload flag
135
173
  if (enableVSCodeReload) {
@@ -1 +1 @@
1
- {"version":3,"file":"create.js","sourceRoot":"","sources":["../../src/launch-config-crud/create.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,IAAI,aAAa,EAAE,MAAM,QAAQ,CAAC;AACjD,OAAO,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AACvC,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAC;AAC3C,OAAO,EAAE,OAAO,EAAE,MAAM,wBAAwB,CAAC;AACjD,OAAO,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAC;AASrD,OAAO,EAAE,4BAA4B,EAAE,MAAM,YAAY,CAAC;AAC1D,OAAO,EAA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AM,CAAC,aAAa,EAAE,CAAC,CAAC;IACnC,MAAM,YAAY,GAAG,YAAY,CAAC,YAAY,CAAC;IAC/C,IAAI,CAAC,YAAY,EAAE,CAAC;QAChB,OAAO,MAAM,oBAAoB,CAAC,UAAU,EAAE,YAAY,EAAE,EAAE,CAAC,CAAC;IACpE,CAAC;IACD,IAAI,CAAC,YAAY,CAAC,MAAM,EAAE,CAAC;QACvB,OAAO,EAAE,CAAC;IACd,CAAC;IACD,OAAO,MAAM,kBAAkB,CAAC,UAAU,EAAE,EAAE,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,CAAC,CAAC;AACxF,CAAC"}
@@ -1,4 +1,8 @@
1
1
  {
2
+ "error": {
3
+ "invalidConfigurations": "The property `configurations` in {{file}} must be an array.",
4
+ "malformedLaunchJson": "The file {{file}} contains syntax errors and cannot be parsed. Please fix the JSON syntax before proceeding."
5
+ },
2
6
  "info": {
3
7
  "startServerMessage": "To start the server, launch a terminal, navigate to the {{folder}} folder and type: npm {{npmCommand}}."
4
8
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sap-ux/launch-config",
3
- "version": "1.0.28",
3
+ "version": "1.0.30",
4
4
  "description": "SAP Fiori tools launch config administration",
5
5
  "type": "module",
6
6
  "repository": {
@@ -28,9 +28,9 @@
28
28
  "mem-fs": "2.1.0",
29
29
  "mem-fs-editor": "9.4.0",
30
30
  "yargs-parser": "22.0.0",
31
- "@sap-ux/project-access": "2.3.4",
32
- "@sap-ux/ui5-config": "1.0.11",
33
- "@sap-ux/ui5-info": "1.0.7"
31
+ "@sap-ux/project-access": "2.3.5",
32
+ "@sap-ux/ui5-config": "1.0.12",
33
+ "@sap-ux/ui5-info": "1.0.8"
34
34
  },
35
35
  "devDependencies": {
36
36
  "@jest/globals": "30.5.2",