@devicecloud.dev/dcd 4.2.2 → 4.2.3
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.
|
@@ -259,7 +259,8 @@ async function plan(options) {
|
|
|
259
259
|
if (workspaceConfig.executionOrder?.flowsOrder &&
|
|
260
260
|
workspaceConfig.executionOrder.flowsOrder.length > 0 &&
|
|
261
261
|
flowsToRunInSequence.length === 0) {
|
|
262
|
-
|
|
262
|
+
console.warn(`Warning: executionOrder specified ${workspaceConfig.executionOrder.flowsOrder.length} flow(s) but none were found.\n` +
|
|
263
|
+
`This may be intentional if flows were excluded by tags.\n\n` +
|
|
263
264
|
`Expected flows: ${workspaceConfig.executionOrder.flowsOrder.join(', ')}\n` +
|
|
264
265
|
`Available flow names: ${Object.keys(pathsByName).join(', ')}\n\n` +
|
|
265
266
|
`Hint: Flow names come from either the 'name' field in the flow config or the filename without extension.`);
|
|
@@ -27,15 +27,20 @@ function getFlowsToRunInSequence(paths, flowOrder, debug = false) {
|
|
|
27
27
|
}
|
|
28
28
|
if (namesInOrder.length === 0) {
|
|
29
29
|
const notFound = [...orderSet].filter((item) => !availableNames.includes(item));
|
|
30
|
-
|
|
30
|
+
console.warn(`Warning: Could not find flows specified in executionOrder.flowsOrder: ${notFound.join(', ')}\n` +
|
|
31
|
+
`This may be intentional if flows were excluded by tags.\n` +
|
|
31
32
|
`Available flow names:\n${availableNames.join('\n')}`);
|
|
33
|
+
return [];
|
|
32
34
|
}
|
|
33
35
|
const result = [...orderSet].filter((item) => namesInOrder.includes(item));
|
|
34
36
|
if (result.length === 0) {
|
|
35
37
|
const notFound = [...orderSet].filter((item) => !namesInOrder.includes(item));
|
|
36
|
-
|
|
38
|
+
console.warn(`Warning: Could not find flows needed for execution in order: ${notFound.join(', ')}\n` +
|
|
39
|
+
`This may be intentional if flows were excluded by tags.\n` +
|
|
40
|
+
`Available flow names:\n${availableNames.join('\n')}`);
|
|
41
|
+
return [];
|
|
37
42
|
}
|
|
38
|
-
|
|
43
|
+
if (flowOrder
|
|
39
44
|
.slice(0, result.length)
|
|
40
45
|
.every((value, index) => value === result[index])) {
|
|
41
46
|
const resolvedPaths = result.map((item) => paths[item]);
|
|
@@ -44,12 +49,10 @@ function getFlowsToRunInSequence(paths, flowOrder, debug = false) {
|
|
|
44
49
|
}
|
|
45
50
|
return resolvedPaths;
|
|
46
51
|
}
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
`Please ensure flows are specified in the correct order.`);
|
|
52
|
-
}
|
|
52
|
+
throw new Error(`Flow order mismatch in executionOrder.flowsOrder.\n\n` +
|
|
53
|
+
`Expected order: [${flowOrder.slice(0, result.length).join(', ')}]\n` +
|
|
54
|
+
`Actual order: [${result.join(', ')}]\n\n` +
|
|
55
|
+
`Please ensure flows are specified in the correct order.`);
|
|
53
56
|
}
|
|
54
57
|
function isFlowFile(filePath) {
|
|
55
58
|
// Exclude files inside .app bundles
|
package/oclif.manifest.json
CHANGED