yeoman-generator 7.3.0 → 7.3.2

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.
@@ -105,7 +105,8 @@ export class TasksMixin {
105
105
  propertyDescriptors.unshift(...Object.entries(Object.getOwnPropertyDescriptors(currentPrototype)));
106
106
  currentPrototype = Object.getPrototypeOf(currentPrototype);
107
107
  }
108
- propertyDescriptors = propertyDescriptors.filter(([name]) => queueNames.includes(name));
108
+ const { taskPrefix = '' } = this.features;
109
+ propertyDescriptors = propertyDescriptors.filter(([name]) => name.startsWith(taskPrefix) && queueNames.includes(name.slice(taskPrefix.length)));
109
110
  return Object.fromEntries(propertyDescriptors);
110
111
  }
111
112
  return Object.getOwnPropertyDescriptors(Object.getPrototypeOf(this));
@@ -203,6 +204,7 @@ export class TasksMixin {
203
204
  if (validMethods.length === 0 && this._prompts.length === 0 && !this.customLifecycle) {
204
205
  throw new Error('This Generator is empty. Add at least one method for it to run.');
205
206
  }
207
+ this.emit('before:queueOwnTasks');
206
208
  if (this._prompts.length > 0) {
207
209
  this.queueTask({
208
210
  method: async () => this.prompt(this._prompts, this.config),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "yeoman-generator",
3
- "version": "7.3.0",
3
+ "version": "7.3.2",
4
4
  "description": "Rails-inspired generator system that provides scaffolding for your apps",
5
5
  "keywords": [
6
6
  "development",