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

Commit

Permalink
fix: accept all options in generator.npmInstall
Browse files Browse the repository at this point in the history
  • Loading branch information
egoist committed Nov 10, 2018
1 parent 266bd06 commit f81ee43
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions lib/GeneratorContext.js
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down

0 comments on commit f81ee43

Please sign in to comment.