Skip to content
This repository has been archived by the owner on Feb 5, 2022. It is now read-only.

Commit

Permalink
fix: rename generators option to subGenerators
Browse files Browse the repository at this point in the history
  • Loading branch information
egoist committed Nov 11, 2018
1 parent 0d6f4f3 commit 8996b0b
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -82,9 +82,11 @@ class SAO {
}

if (generator.subGenerator) {
// TODO: remove config.generators support, you should use `subGenerators` instead
const subGenerators = config.subGenerators || config.generators
const subGenerator =
config.generators &&
config.generators.find(g => g.name === generator.subGenerator)
subGenerators &&
subGenerators.find(g => g.name === generator.subGenerator)
if (subGenerator) {
const generatorPath = isLocalPath(subGenerator.from)
? path.resolve(generator.path, subGenerator.from)
Expand Down

0 comments on commit 8996b0b

Please sign in to comment.