Skip to content

Commit

Permalink
fix(linter): fix how eslint hasher gets projects from task dependenci…
Browse files Browse the repository at this point in the history
…es (#6875)
  • Loading branch information
leosvelperez committed Aug 27, 2021
1 parent d0e2176 commit 301e70a
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions packages/linter/src/executors/eslint/hasher.ts
Expand Up @@ -37,6 +37,13 @@ export default async function run(
};
}

function allDeps(taskId: string, taskGraph: TaskGraph) {
return [...taskGraph.dependencies[taskId].map((d) => allDeps(d, taskGraph))];
function allDeps(taskId: string, taskGraph: TaskGraph): string[] {
return [
...taskGraph.dependencies[taskId].map(
(task) => taskGraph.tasks[task].target.project
),
...taskGraph.dependencies[taskId].flatMap((task) =>
allDeps(task, taskGraph)
),
];
}

0 comments on commit 301e70a

Please sign in to comment.