@uipath/packager-tool-functions 1.196.0 → 1.197.0-preview.64

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.d.ts CHANGED
@@ -1 +1 @@
1
- export {};
1
+ export { FunctionsToolFactory } from "./functions-tool-factory.js";
package/dist/index.js CHANGED
@@ -1,6 +1,3 @@
1
- // src/index.ts
2
- import { toolsFactoryRepository } from "@uipath/solutionpackager-tool-core";
3
-
4
1
  // src/functions-tool-factory.ts
5
2
  import {
6
3
  ProjectTypes
@@ -8,6 +5,7 @@ import {
8
5
 
9
6
  // src/functions-tool.ts
10
7
  import {
8
+ ensureProjectId,
11
9
  NugetConstants as NugetConstants2,
12
10
  NugetPackager,
13
11
  Path as Path2,
@@ -358,10 +356,11 @@ class FunctionsTool extends ProjectTool {
358
356
  const languageLabel = LanguageLabels[language];
359
357
  try {
360
358
  this.logger.progress(`Building ${languageLabel} Functions package...`);
359
+ const projectStorageId = options.projectStorageId ?? await ensureProjectId(options.projectPath, this.fileSystem);
361
360
  await build(this.fileSystem, {
362
361
  projectPath: options.projectPath,
363
362
  outputPath: localBuildFolder,
364
- projectStorageId: options.projectStorageId ?? ""
363
+ projectStorageId
365
364
  });
366
365
  return new ToolResult(ToolErrorCodes.Success, "Build completed successfully.", [localBuildFolder]);
367
366
  } catch (error) {
@@ -426,6 +425,8 @@ class FunctionsToolFactory {
426
425
  return new FunctionsTool(fileSystem, logger);
427
426
  }
428
427
  }
428
+ export {
429
+ FunctionsToolFactory
430
+ };
429
431
 
430
- // src/index.ts
431
- toolsFactoryRepository.registerProjectToolFactory(new FunctionsToolFactory);
432
+ //# debugId=426731853C932F2F64756E2164756E21
package/package.json CHANGED
@@ -1,40 +1,31 @@
1
1
  {
2
- "name": "@uipath/packager-tool-functions",
3
- "version": "1.196.0",
4
- "description": "UiPath Functions tool implementation",
5
- "type": "module",
6
- "exports": {
7
- ".": {
8
- "source": "./src/index.ts",
9
- "default": "./dist/index.js"
10
- }
11
- },
12
- "repository": {
13
- "type": "git",
14
- "url": "https://github.com/UiPath/cli.git",
15
- "directory": "packages/packager/packager-tool-functions"
16
- },
17
- "publishConfig": {
18
- "registry": "https://registry.npmjs.org/"
19
- },
20
- "types": "./dist/index.d.ts",
21
- "files": [
22
- "dist",
23
- "!dist/**/*.map",
24
- "src"
25
- ],
26
- "author": "",
27
- "license": "ISC",
28
- "peerDependencies": {
29
- "@uipath/solutionpackager-tool-core": "1.196.0"
30
- },
31
- "devDependencies": {
32
- "@uipath/coded-functions-js-packager": "^0.1.0",
33
- "@types/node": "^25.5.2",
34
- "@uipath/solutionpackager-tool-core": "1.196.0",
35
- "@vitest/coverage-v8": "^4.1.6",
36
- "typescript": "^6.0.2",
37
- "vitest": "^4.1.6"
38
- },
39
- "gitHead": "bed2b46f1ec33a47a7dcae2e6d4b7ab99bd06981"
2
+ "name": "@uipath/packager-tool-functions",
3
+ "version": "1.197.0-preview.64",
4
+ "description": "UiPath Functions tool implementation",
5
+ "type": "module",
6
+ "exports": {
7
+ ".": {
8
+ "source": "./src/index.ts",
9
+ "default": "./dist/index.js"
10
+ }
11
+ },
12
+ "repository": {
13
+ "type": "git",
14
+ "url": "https://github.com/UiPath/cli.git",
15
+ "directory": "packages/packager/packager-tool-functions"
16
+ },
17
+ "publishConfig": {
18
+ "registry": "https://registry.npmjs.org/"
19
+ },
20
+ "types": "./dist/index.d.ts",
21
+ "files": [
22
+ "dist",
23
+ "src"
24
+ ],
25
+ "author": "",
26
+ "license": "ISC",
27
+ "peerDependencies": {
28
+ "@uipath/solutionpackager-tool-core": "1.197.0"
29
+ },
30
+ "gitHead": "3977b977945bf519336258da69fd271433eaaef4"
40
31
  }
@@ -5,6 +5,7 @@ import type {
5
5
  IProjectValidateOptions,
6
6
  } from "@uipath/solutionpackager-tool-core";
7
7
  import {
8
+ ensureProjectId,
8
9
  type IFileSystem,
9
10
  type IToolLogger,
10
11
  NugetConstants,
@@ -69,10 +70,13 @@ export class FunctionsTool extends ProjectTool {
69
70
  this.logger.progress(
70
71
  `Building ${languageLabel} Functions package...`,
71
72
  );
73
+ const projectStorageId =
74
+ options.projectStorageId ??
75
+ (await ensureProjectId(options.projectPath, this.fileSystem));
72
76
  await build(this.fileSystem, {
73
77
  projectPath: options.projectPath,
74
78
  outputPath: localBuildFolder,
75
- projectStorageId: options.projectStorageId ?? "",
79
+ projectStorageId,
76
80
  });
77
81
 
78
82
  return new ToolResult(
package/src/index.ts CHANGED
@@ -1,8 +1,6 @@
1
1
  // ============================================================================
2
- // Self-register Functions tool factory with the singleton repository
2
+ // Functions tool factory. Consumers register it explicitly via
3
+ // `toolsFactoryRepository.registerProjectToolFactory(new FunctionsToolFactory())`.
3
4
  // ============================================================================
4
5
 
5
- import { toolsFactoryRepository } from "@uipath/solutionpackager-tool-core";
6
- import { FunctionsToolFactory } from "./functions-tool-factory.js";
7
-
8
- toolsFactoryRepository.registerProjectToolFactory(new FunctionsToolFactory());
6
+ export { FunctionsToolFactory } from "./functions-tool-factory.js";