We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Learn more about funding links in repositories.
Report abuse
1 parent 9aa4e02 commit df7012fCopy full SHA for df7012f
lib/index.js
@@ -487,10 +487,16 @@ Base.prototype.composeWith = function composeWith(modulePath, options) {
487
var Generator = require(modulePath);
488
Generator.resolved = require.resolve(modulePath);
489
Generator.namespace = this.env.namespace(modulePath);
490
- generator = this.env.instantiate(Generator, {options: options});
+ generator = this.env.instantiate(Generator, {
491
+ options: options,
492
+ arguments: options.arguments
493
+ });
494
} catch (err) {
495
if (err.code === 'MODULE_NOT_FOUND') {
- generator = this.env.create(modulePath, {options: options});
496
+ generator = this.env.create(modulePath, {
497
498
499
500
} else {
501
throw err;
502
}
👌
1 commit comments
mischah commentedon Dec 8, 2016
👌