Skip to content

Commit

Permalink
fix(run): do not toposort when running in parallel with useNx to matc…
Browse files Browse the repository at this point in the history
…h legacy
  • Loading branch information
ghiscoding committed Aug 5, 2022
1 parent 8b72df3 commit af1192c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions packages/run/src/run-command.ts
Expand Up @@ -252,7 +252,7 @@ export class RunCommand extends Command<RunCommandOption & FilterOptions> {
Object.keys(nxJson.targetDependencies || nxJson.targetDefaults || {}).length > 0;
const targetDependencies =
// prettier-ignore
this.toposort && !targetDependenciesAreDefined
this.toposort && !this.options.parallel && !targetDependenciesAreDefined
? {
[this.script]: [
{
Expand All @@ -263,8 +263,9 @@ export class RunCommand extends Command<RunCommandOption & FilterOptions> {
}
: {};

// prettier-ignore
const outputStyle = this.options.stream
? this.options.prefix !== false
? this.prefix
? 'stream'
: 'stream-without-prefixes'
: 'dynamic';
Expand Down

0 comments on commit af1192c

Please sign in to comment.