Skip to content

Commit 1e22e25

Browse files
committed
fix(schematics): fix parallel command on windows
1 parent 6f68639 commit 1e22e25

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

packages/schematics/src/command-line/affected.ts

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ function lint(projects: string[], parsedArgs: YargsAffectedOptions) {
150150
);
151151
const projectsToLint = sortedAffectedProjects.filter(p => {
152152
const matchingProject = depGraph.projects.find(pp => pp.name === p);
153-
return (!!matchingProject.architect['lint']);
153+
return !!matchingProject.architect['lint'];
154154
});
155155

156156
if (projectsToLint.length > 0) {
@@ -175,7 +175,6 @@ function lint(projects: string[], parsedArgs: YargsAffectedOptions) {
175175
}
176176
}
177177

178-
179178
function runCommand(
180179
command: string,
181180
projects: string[],
@@ -198,8 +197,14 @@ function runCommand(
198197
stderr: process.stderr
199198
}
200199
)
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+
});
203208
} else {
204209
projects.forEach(project => {
205210
console.log(iterationMessage + project);

0 commit comments

Comments
 (0)