From 3c7bab978384c20e4697dc64aecc3f0f80e1c836 Mon Sep 17 00:00:00 2001 From: Jeff Dickey <216188+jdxcode@users.noreply.github.com> Date: Thu, 1 Feb 2018 13:30:35 -0800 Subject: [PATCH] fix: do not set anycli if empty --- src/generators/app.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/generators/app.ts b/src/generators/app.ts index 2fac0788d..b7a94082e 100644 --- a/src/generators/app.ts +++ b/src/generators/app.ts @@ -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)