Skip to content

Commit

Permalink
fix: do not set anycli if empty
Browse files Browse the repository at this point in the history
  • Loading branch information
jdx committed Feb 1, 2018
1 parent 839b7b1 commit 3c7bab9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/generators/app.ts
Expand Up @@ -282,6 +282,7 @@ class App extends Generator {
if (this.fs.exists(this.destinationPath('./package.json'))) {
fixpack(this.destinationPath('./package.json'), require('fixpack/config.json'))
}
if (_.isEmpty(this.pjson.anycli)) delete this.pjson.anycli
this.fs.writeJSON(this.destinationPath('./package.json'), sortPjson(this.pjson))
this.fs.copyTpl(this.templatePath('editorconfig'), this.destinationPath('.editorconfig'), this)
this.fs.copyTpl(this.templatePath('scripts/test.ejs'), this.destinationPath('.circleci/test'), this)
Expand Down

0 comments on commit 3c7bab9

Please sign in to comment.