Skip to content

Commit

Permalink
@produck/duck-runner:
Browse files Browse the repository at this point in the history
[FIXED] register roles after installed
  • Loading branch information
lichaozhy committed Nov 25, 2024
1 parent 3d4c720 commit a423e16
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/duck-runner/src/index.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ const DuckRunnerComponent = (...args) => {
manager.Mode(name, modes[name]);
}

next();

for (const name in roles) {
const RoleKit = Kit(`Role<${name}>`);

Expand All @@ -40,8 +42,6 @@ const DuckRunnerComponent = (...args) => {
manager.Role(name, play);
}

next();

runner.start = async function start(mode) {
Assert.Type.String(mode, 'mode');
await manager.run(mode, Kit);
Expand Down

0 comments on commit a423e16

Please sign in to comment.