diff --git a/packages/eslint/src/executors/lint/hasher.ts b/packages/eslint/src/executors/lint/hasher.ts index 8b092b65fca09..0031a2b9e0961 100644 --- a/packages/eslint/src/executors/lint/hasher.ts +++ b/packages/eslint/src/executors/lint/hasher.ts @@ -50,13 +50,15 @@ export default async function run( hashes.push(res.details.nodes[d]); } } - return { + const hashResult = { value: hashArray([command, selfSource, ...hashes, tags]), details: { command, nodes: { [task.target.project]: selfSource, tags, ...nodes }, }, }; + hashResult['name'] = 'eslint-hasher'; + return hashResult; } function allDeps( diff --git a/packages/nx/src/hasher/hash-task.ts b/packages/nx/src/hasher/hash-task.ts index 73e8369b33dd8..4864a2b3c3873 100644 --- a/packages/nx/src/hasher/hash-task.ts +++ b/packages/nx/src/hasher/hash-task.ts @@ -41,7 +41,7 @@ export async function hashTasksThatDoNotDependOnOutputsOfOtherTasks( const tasksToHash = tasksWithHashers .filter(({ task, customHasher }) => { // If a task has a custom hasher, it might depend on the outputs of other tasks - if (customHasher) { + if (customHasher && customHasher.name !== 'eslint-hasher') { return false; }