Skip to content

Commit

Permalink
fix: sort plugins if exists
Browse files Browse the repository at this point in the history
  • Loading branch information
jdx committed Jan 30, 2018
1 parent 8d8fe71 commit b729296
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/generators/app/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ class App extends Generator {
]
}

if (this.pjson.dxcli.plugins) this.pjson.dxcli.plugins.sort()
if (this.pjson.dxcli && 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 b729296

Please sign in to comment.