From b55aa8f80c74bc15594a0c3b9f474b79a4910312 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miroslav=20Jona=C5=A1?= Date: Thu, 11 May 2023 23:18:06 +0200 Subject: [PATCH] feat(core): support third-party packages for surgical hashTarget hashing (#16903) --- packages/nx/src/hasher/hasher.ts | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/packages/nx/src/hasher/hasher.ts b/packages/nx/src/hasher/hasher.ts index c41a365f59ae6..9378bd89751de 100644 --- a/packages/nx/src/hasher/hasher.ts +++ b/packages/nx/src/hasher/hasher.ts @@ -385,13 +385,9 @@ class TaskHasher { return; } - // we can only vouch for @nrwl packages's executors // if it's "run commands" we skip traversing since we have no info what this command depends on - // for everything else we take the hash of the @nrwl package dependency tree - if ( - target.executor.startsWith(`@nrwl/`) || - target.executor.startsWith(`@nx/`) - ) { + // for everything else we take the hash of the executor package's dependency tree + if (!target.executor.startsWith(`nx:run-commands`)) { const executorPackage = target.executor.split(':')[0]; const executorNode = `npm:${executorPackage}`; if (this.projectGraph.externalNodes?.[executorNode]) {