diff --git a/lib/GeneratorContext.js b/lib/GeneratorContext.js index 7d42feb..b1f7465 100644 --- a/lib/GeneratorContext.js +++ b/lib/GeneratorContext.js @@ -56,10 +56,15 @@ module.exports = class GeneratorContext { } } - npmInstall() { - return require('./installPackages')({ - cwd: this.outDir - }) + npmInstall(opts) { + return require('./installPackages')( + Object.assign( + { + cwd: this.outDir + }, + opts + ) + ) } showProjectTips() {