Skip to content

Commit

Permalink
fix: allow to override a generator. (#418)
Browse files Browse the repository at this point in the history
  • Loading branch information
mshima authored Jun 16, 2022
1 parent 60945ed commit 2f7fe9f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/store.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,9 @@ class Store {
packagePath
};

if (this._generators[namespace]) {
delete this._generators[namespace];
}
this._generators[namespace] = Generator;
}

Expand Down

0 comments on commit 2f7fe9f

Please sign in to comment.