fix: only sort if array
MODIFY
src/generators/app/index.ts
src/generators/app/index.ts
@@ -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)

fix: only sort if array