Skip to content

Commit

Permalink
fix: only sort if array
Browse files Browse the repository at this point in the history
  • Loading branch information
jdx committed Jan 30, 2018
1 parent f908632 commit 6557c82
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/generators/app/index.ts
Expand Up @@ -250,7 +250,9 @@ class App extends Generator {
]
}

if (this.pjson.dxcli && this.pjson.dxcli.plugins) this.pjson.dxcli.plugins.sort()
if (this.pjson.dxcli && _.isArray(this.pjson.dxcli.plugins)) {
this.pjson.dxcli.plugins.sort()
}

if (this.ts) {
this.fs.copyTpl(this.templatePath('tslint.json'), this.destinationPath('tslint.json'), this)
Expand Down

0 comments on commit 6557c82

Please sign in to comment.