10000 fix: generate readme · oclif/oclif@185ef6c · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Commit 185ef6c

Browse files
committed
fix: generate readme
1 parent 5f94008 commit 185ef6c

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

src/generators/app.ts

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -481,15 +481,17 @@ class App extends Generator {
481481
const install = (deps: string[], opts: object) => this.yarn ? this.yarnInstall(deps, opts) : this.npmInstall(deps, opts)
482482
const dev = this.yarn ? {dev: true} : {'save-dev': true}
483483
const save = this.yarn ? {} : {save: true}
484-
Promise.all([
484+
return Promise.all([
485485
install(devDependencies, {...yarnOpts, ...dev, ignoreScripts: true}),
486486
install(dependencies, {...yarnOpts, ...save}),
487-
]).then(() => {
488-
if (['plugin', 'multi'].includes(this.type)) {
489-
this.spawnCommandSync(path.join('.', 'node_modules/.bin/oclif-dev'), ['readme'])
490-
}
491-
console.log(`\nCreated ${this.pjson.name} in ${this.destinationRoot()}`)
492-
})
487+
])
488+
}
489+
490+
end() {
491+
if (['plugin', 'multi'].includes(this.type)) {
492+
this.spawnCommandSync(path.join('.', 'node_modules/.bin/oclif-dev'), ['readme'])
493+
}
494+
console.log(`\nCreated ${this.pjson.name} in ${this.destinationRoot()}`)
493495
}
494496

495497
private _gitignore(): string {

0 commit comments

Comments
 (0)
0