persona-community-5/.pnpm-store/v3/files/05/a357e808413b6b8abeb0ef991c056813e8873a5d21242778a4afd08a919a43206b7de1001403acc1596d66841780e885b77af48f3b55084fa5b66a4fe1f2eb
rdev-worker a1d0d1bf1c
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
build: /implement-feature community-ui --requirements 'Build the React commu...
2026-02-24 08:22:30 +00:00

27 lines
939 B
Plaintext

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.StepIdUnique = void 0;
const StepIdUnique = () => {
return {
Workflow: {
enter(workflow, { report, location }) {
if (!workflow.steps)
return;
const seenSteps = new Set();
for (const step of workflow.steps) {
if (!step.stepId)
return;
if (seenSteps.has(step.stepId)) {
report({
message: 'The `stepId` must be unique amongst all steps described in the workflow.',
location: location.child(['steps', workflow.steps.indexOf(step)]),
});
}
seenSteps.add(step.stepId);
}
},
},
};
};
exports.StepIdUnique = StepIdUnique;