@uipath/packager-tool-apiworkflow 1.203.0-preview.205 → 1.204.0-preview.206
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/api-workflows-tool.d.ts +6 -1
- package/dist/index.js +14 -9
- package/package.json +3 -3
|
@@ -12,7 +12,12 @@ export declare class ApiWorkflowsTool extends ProjectTool {
|
|
|
12
12
|
packAsync(options: IProjectPackOptions, cancellationToken?: AbortSignal): Promise<ToolResult>;
|
|
13
13
|
dispose(): Promise<void>;
|
|
14
14
|
/**
|
|
15
|
-
* Copy
|
|
15
|
+
* Copy the project's top-level files, plus the subdirectories in
|
|
16
|
+
* {@link PACKAGED_PROJECT_DIRECTORIES}, into the package content folder.
|
|
17
|
+
*
|
|
18
|
+
* An allowlist, not a plain recursion: a project directory also holds local-only state
|
|
19
|
+
* (`.local`, which the solution export gates behind its own `ExportLocalFolder` option, and
|
|
20
|
+
* `.gate`) that must never reach a published package.
|
|
16
21
|
*/
|
|
17
22
|
private copyFiles;
|
|
18
23
|
/**
|
package/dist/index.js
CHANGED
|
@@ -397,6 +397,7 @@ import {
|
|
|
397
397
|
ToolResult,
|
|
398
398
|
translate
|
|
399
399
|
} from "@uipath/solutionpackager-tool-core";
|
|
400
|
+
var PACKAGED_PROJECT_DIRECTORIES = ["evals"];
|
|
400
401
|
|
|
401
402
|
class ApiWorkflowsTool extends ProjectTool {
|
|
402
403
|
_temporaryStorage;
|
|
@@ -458,15 +459,19 @@ class ApiWorkflowsTool extends ProjectTool {
|
|
|
458
459
|
}
|
|
459
460
|
async copyFiles(sourcePath, destinationPath) {
|
|
460
461
|
await this.fileSystem.mkdir(destinationPath);
|
|
461
|
-
const
|
|
462
|
-
for (const
|
|
463
|
-
const
|
|
464
|
-
const
|
|
465
|
-
const stat = await this.fileSystem.stat(
|
|
466
|
-
if (stat?.
|
|
467
|
-
|
|
462
|
+
const entries = await this.fileSystem.readdir(sourcePath);
|
|
463
|
+
for (const entry of entries) {
|
|
464
|
+
const sourceEntry = Path.join(sourcePath, entry);
|
|
465
|
+
const destinationEntry = Path.join(destinationPath, entry);
|
|
466
|
+
const stat = await this.fileSystem.stat(sourceEntry);
|
|
467
|
+
if (stat?.isDirectory()) {
|
|
468
|
+
if (PACKAGED_PROJECT_DIRECTORIES.includes(entry)) {
|
|
469
|
+
await this.fileSystem.copyDirectory(sourceEntry, destinationEntry);
|
|
470
|
+
}
|
|
471
|
+
} else if (stat?.isFile()) {
|
|
472
|
+
const content = await this.fileSystem.readFile(sourceEntry);
|
|
468
473
|
if (content) {
|
|
469
|
-
await this.fileSystem.writeFile(
|
|
474
|
+
await this.fileSystem.writeFile(destinationEntry, content);
|
|
470
475
|
}
|
|
471
476
|
}
|
|
472
477
|
}
|
|
@@ -510,4 +515,4 @@ export {
|
|
|
510
515
|
ApiWorkflowToolFactory
|
|
511
516
|
};
|
|
512
517
|
|
|
513
|
-
//# debugId=
|
|
518
|
+
//# debugId=4DB123C55ED8A71564756E2164756E21
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@uipath/packager-tool-apiworkflow",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.204.0-preview.206",
|
|
4
4
|
"description": "UiPath API Workflow tool implementation",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
"author": "UiPath",
|
|
22
22
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
23
23
|
"peerDependencies": {
|
|
24
|
-
"@uipath/solutionpackager-tool-core": "1.
|
|
24
|
+
"@uipath/solutionpackager-tool-core": "1.204.0"
|
|
25
25
|
},
|
|
26
|
-
"gitHead": "
|
|
26
|
+
"gitHead": "ea7fd32a02acccf14e8e83522e69101430627b83"
|
|
27
27
|
}
|