* Run `[pkgManager] install` in the project
()
| 383 | * Run `[pkgManager] install` in the project |
| 384 | */ |
| 385 | install() { |
| 386 | if (this.shouldExit()) return false; |
| 387 | const opts = { |
| 388 | npm: this.options.npmInstall, |
| 389 | yarn: this.options.yarnInstall, |
| 390 | }; |
| 391 | const spawnOpts = Object.assign({}, this.options.spawn, { |
| 392 | cwd: this.destinationRoot(), |
| 393 | }); |
| 394 | this.pkgManagerInstall(null, opts, spawnOpts); |
| 395 | } |
| 396 | |
| 397 | /** |
| 398 | * Wrapper for mem-fs-editor.copyTpl() to ensure consistent options |
no test coverage detected