Skip to content

Commit

Permalink
feat: provide features param to base constructor
Browse files Browse the repository at this point in the history
  • Loading branch information
sinedied committed Jul 20, 2021
1 parent 69bf709 commit 8bfe827
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,8 @@ class CoreGenerator extends Generator {
}

return class extends CoreGenerator {
constructor(args, generatorOptions) {
super(args, generatorOptions, options.options, options.prompts);
constructor(args, generatorOptions, features) {
super(args, generatorOptions, features, options.options, options.prompts);
global[SharedStorageKey].instances++;

if (options.type === 'server' || options.type === 'fullstack') {
Expand Down Expand Up @@ -126,8 +126,8 @@ class CoreGenerator extends Generator {
_.defaults(global[SharedStorageKey].props, props);
}

constructor(args, generatorOptions, options, prompts) {
super(args, generatorOptions);
constructor(args, generatorOptions, features, options, prompts) {
super(args, generatorOptions, features);
options = options || [];
prompts = prompts || [];

Expand Down

0 comments on commit 8bfe827

Please sign in to comment.