@uipath/packager-tool-webapp 1.199.0 → 1.201.0-preview.115

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/index.js CHANGED
@@ -223,6 +223,15 @@ class CodedAppStrategy {
223
223
  await this.fileSystem.writeFile(uipathJsonDestPath, uipathJsonContent);
224
224
  }
225
225
  }
226
+ const actionSchemaSourcePath = Path3.join(projectPath, "action-schema.json");
227
+ const actionSchemaDestPath = Path3.join(contentFolder, "action-schema.json");
228
+ const actionSchemaExists = await this.fileSystem.exists(actionSchemaSourcePath);
229
+ if (actionSchemaExists) {
230
+ const actionSchemaContent = await this.fileSystem.readFile(actionSchemaSourcePath, "utf-8");
231
+ if (actionSchemaContent) {
232
+ await this.fileSystem.writeFile(actionSchemaDestPath, actionSchemaContent);
233
+ }
234
+ }
226
235
  const bindingsPath = Path3.join(contentFolder, "bindings.json");
227
236
  const bindingsExists = await this.fileSystem.exists(bindingsPath);
228
237
  if (!bindingsExists) {
@@ -234,6 +243,7 @@ class CodedAppStrategy {
234
243
  }
235
244
  const bindingsV2Path = Path3.join(contentFolder, "bindings_v2.json");
236
245
  const bindingsCandidatePaths = [
246
+ Path3.join(projectPath, "source", "bindings_v2.json"),
237
247
  Path3.join(projectPath, "source", "bindings.json"),
238
248
  Path3.join(projectPath, "bindings.json"),
239
249
  Path3.join(projectPath, "bindings_v2.json")
@@ -681,4 +691,4 @@ export {
681
691
  WEBAPP_MANIFEST_FILE_NAME
682
692
  };
683
693
 
684
- //# debugId=661724B37BE1606464756E2164756E21
694
+ //# debugId=1382FDDD2BD3BF2A64756E2164756E21
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uipath/packager-tool-webapp",
3
- "version": "1.199.0",
3
+ "version": "1.201.0-preview.115",
4
4
  "description": "UiPath WebApp tool implementation",
5
5
  "type": "module",
6
6
  "exports": {
@@ -25,7 +25,7 @@
25
25
  "author": "",
26
26
  "license": "ISC",
27
27
  "peerDependencies": {
28
- "@uipath/solutionpackager-tool-core": "1.199.0"
28
+ "@uipath/solutionpackager-tool-core": "1.201.0"
29
29
  },
30
- "gitHead": "723e6801b77b5926ba75e75b6a756cc38b1b7adc"
30
+ "gitHead": "f1086b73654d7728cb71f280588b3e0c77d535fc"
31
31
  }
@@ -272,6 +272,31 @@ export class CodedAppStrategy implements VariantStrategy {
272
272
  }
273
273
  }
274
274
 
275
+ // Copy action-schema.json from project root into content (if it exists)
276
+ const actionSchemaSourcePath = Path.join(
277
+ projectPath,
278
+ "action-schema.json",
279
+ );
280
+ const actionSchemaDestPath = Path.join(
281
+ contentFolder,
282
+ "action-schema.json",
283
+ );
284
+ const actionSchemaExists = await this.fileSystem.exists(
285
+ actionSchemaSourcePath,
286
+ );
287
+ if (actionSchemaExists) {
288
+ const actionSchemaContent = await this.fileSystem.readFile(
289
+ actionSchemaSourcePath,
290
+ "utf-8",
291
+ );
292
+ if (actionSchemaContent) {
293
+ await this.fileSystem.writeFile(
294
+ actionSchemaDestPath,
295
+ actionSchemaContent,
296
+ );
297
+ }
298
+ }
299
+
275
300
  // Create or copy bindings.json (version 1.0)
276
301
  const bindingsPath = Path.join(contentFolder, "bindings.json");
277
302
  const bindingsExists = await this.fileSystem.exists(bindingsPath);
@@ -291,6 +316,7 @@ export class CodedAppStrategy implements VariantStrategy {
291
316
  // Create or copy bindings_v2.json (version 2.0)
292
317
  const bindingsV2Path = Path.join(contentFolder, "bindings_v2.json");
293
318
  const bindingsCandidatePaths = [
319
+ Path.join(projectPath, "source", "bindings_v2.json"),
294
320
  Path.join(projectPath, "source", "bindings.json"),
295
321
  Path.join(projectPath, "bindings.json"),
296
322
  Path.join(projectPath, "bindings_v2.json"),