File tree Expand file tree Collapse file tree 1 file changed +9
-4
lines changed
packages/schematics/src/command-line Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Original file line number Diff line number Diff line change @@ -150,7 +150,7 @@ function lint(projects: string[], parsedArgs: YargsAffectedOptions) {
150
150
) ;
151
151
const projectsToLint = sortedAffectedProjects . filter ( p => {
152
152
const matchingProject = depGraph . projects . find ( pp => pp . name === p ) ;
153
- return ( ! ! matchingProject . architect [ 'lint' ] ) ;
153
+ return ! ! matchingProject . architect [ 'lint' ] ;
154
154
} ) ;
155
155
156
156
if ( projectsToLint . length > 0 ) {
@@ -175,7 +175,6 @@ function lint(projects: string[], parsedArgs: YargsAffectedOptions) {
175
175
}
176
176
}
177
177
178
-
179
178
function runCommand (
180
179
command : string ,
181
180
projects : string [ ] ,
@@ -198,8 +197,14 @@ function runCommand(
198
197
stderr : process . stderr
199
198
}
200
199
)
201
- . then ( ( ) => console . log ( successMessage ) )
202
- . catch ( err => console . error ( errorMessage ) ) ;
200
+ . then ( ( ) => {
201
+ console . log ( successMessage ) ;
202
+ process . exit ( 0 ) ;
203
+ } )
204
+ . catch ( err => {
205
+ console . error ( errorMessage ) ;
206
+ process . exit ( 1 ) ;
207
+ } ) ;
203
208
} else {
204
209
projects . forEach ( project => {
205
210
console . log ( iterationMessage + project ) ;
You can’t perform that action at this time.
0 commit comments