If this question is quite old, then this is an attempt that I always use, since it worked for me in different projects:
, .
:
"scripts": {
"build": "ng lint && ionic-app-scripts build",
"lint": "ng lint",
}
:
"scripts": {
"build": "ionic-app-scripts build",
"lint": "ng lint",
"linted-build": "npm run lint && npm run build"
}
, &&, . → , linting. , &.
, ;)