Skip to content

Commit

Permalink
emit event before:queueOwnTasks (#1528)
Browse files Browse the repository at this point in the history
  • Loading branch information
mshima authored Jun 24, 2024
1 parent 169deec commit 6767857
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/actions/lifecycle.ts
Original file line number Diff line number Diff line change
Expand Up @@ -273,6 +273,8 @@ export abstract class TasksMixin {
throw new Error('This Generator is empty. Add at least one method for it to run.');
}

this.emit('before:queueOwnTasks');

if (this._prompts.length > 0) {
this.queueTask({
method: async () => (this as any).prompt(this._prompts, this.config),
Expand Down

0 comments on commit 6767857

Please sign in to comment.