From 676785765bb5bec230733db551d31cd721c673ef Mon Sep 17 00:00:00 2001 From: Marcelo Shima Date: Mon, 24 Jun 2024 17:26:33 -0300 Subject: [PATCH] emit event before:queueOwnTasks (#1528) --- src/actions/lifecycle.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/actions/lifecycle.ts b/src/actions/lifecycle.ts index d6819088..7606cf19 100644 --- a/src/actions/lifecycle.ts +++ b/src/actions/lifecycle.ts @@ -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),