From d65697749984ba22f28f10e3fcab10918d08441c Mon Sep 17 00:00:00 2001 From: Jonathan Cammisuli Date: Fri, 14 Jul 2023 08:16:44 -0400 Subject: [PATCH] fix(core): remove `fatal: no path specified` logs from daemon --- .../daemon/server/project-graph-incremental-recomputation.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/packages/nx/src/daemon/server/project-graph-incremental-recomputation.ts b/packages/nx/src/daemon/server/project-graph-incremental-recomputation.ts index 3627baeb287d2..b8e86f96b18bf 100644 --- a/packages/nx/src/daemon/server/project-graph-incremental-recomputation.ts +++ b/packages/nx/src/daemon/server/project-graph-incremental-recomputation.ts @@ -137,6 +137,10 @@ function computeWorkspaceConfigHash( * TODO(Cammisuli): remove after 16.4 - Rust watcher handles nested gitignores */ function filterUpdatedFiles(files: string[]) { + if (files.length === 0) { + return files; + } + try { const quoted = files.map((f) => '"' + f + '"'); const ignored = execSync(`git check-ignore ${quoted.join(' ')}`, {