@uipath/packager-tool-functions 0.0.8 → 0.1.0
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/README.md +88 -0
- package/dist/functions-tool-factory.d.ts +1 -1
- package/dist/functions-tool.d.ts +1 -7
- package/dist/index.js +345 -107
- package/dist/js/build-js-functions-package.d.ts +3 -0
- package/dist/js/index.d.ts +1 -0
- package/dist/py/build-py-functions-package.d.ts +3 -0
- package/dist/py/constants.d.ts +14 -0
- package/dist/py/index.d.ts +1 -0
- package/dist/types.d.ts +13 -0
- package/package.json +7 -6
- package/src/functions-tool-factory.ts +1 -1
- package/src/functions-tool.ts +47 -204
- package/src/index.ts +1 -1
- package/src/js/build-js-functions-package.ts +14 -0
- package/src/js/index.ts +1 -0
- package/src/py/build-py-functions-package.ts +287 -0
- package/src/py/constants.ts +40 -0
- package/src/py/index.ts +1 -0
- package/src/types.ts +24 -0
package/src/types.ts
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import type { IFileSystem } from "@uipath/solutionpackager-tool-core";
|
|
2
|
+
|
|
3
|
+
export const Languages = {
|
|
4
|
+
JavaScript: "javascript",
|
|
5
|
+
Python: "python",
|
|
6
|
+
} as const;
|
|
7
|
+
|
|
8
|
+
export type Language = (typeof Languages)[keyof typeof Languages];
|
|
9
|
+
|
|
10
|
+
export const LanguageLabels: Record<Language, string> = {
|
|
11
|
+
[Languages.JavaScript]: "JS/TS",
|
|
12
|
+
[Languages.Python]: "Python",
|
|
13
|
+
};
|
|
14
|
+
|
|
15
|
+
export interface BuildPackageOptions {
|
|
16
|
+
projectPath: string;
|
|
17
|
+
outputPath: string;
|
|
18
|
+
projectStorageId: string;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
export type BuildPackageFn = (
|
|
22
|
+
fileSystem: IFileSystem,
|
|
23
|
+
options: BuildPackageOptions,
|
|
24
|
+
) => Promise<void>;
|