Skip to content

Commit

Permalink
🎈 perf(npm): more robust npm
Browse files Browse the repository at this point in the history
see yeoman/generator#1294

yo@5 is still not handling this well
  • Loading branch information
duncdrum committed Jul 5, 2022
1 parent fdba1ed commit 890fe8a
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion generators/app/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -391,7 +391,15 @@ module.exports = class extends Generator {
},
repository: ''
}
this.npmInstall(['chai', 'chai-xml', 'fs-extra', 'mocha', 'supertest', 'xmldoc', 'yeoman-assert'], { 'save-dev': true })
this.env.options.nodePackageManager = 'npm'
// see https://github.com/yeoman/generator/issues/1294
this.npmInstall(['chai'], { 'save-dev': true })
this.npmInstall(['chai-xml'], { 'save-dev': true })
this.npmInstall(['fs-extra'], { 'save-dev': true })
this.npmInstall(['mocha'], { 'save-dev': true })
this.npmInstall(['supertest'], { 'save-dev': true })
this.npmInstall(['xmldoc'], { 'save-dev': true })
this.npmInstall(['yeoman-assert'], { 'save-dev': true })
// Applies to all (without prompts)
// TODO #56 html -> xhtml

Expand Down

0 comments on commit 890fe8a

Please sign in to comment.