From dddaba1f356c9d70166fa6bc041743a2a7f9225a Mon Sep 17 00:00:00 2001 From: Addison Beck Date: Thu, 11 Jun 2026 10:26:06 -0400 Subject: [PATCH] fix(nx): clear build dependsOn workspace default (#21203) The bitwarden-clients workspace uses source-direct webpack bundling: apps bundle libs via @bitwarden/* path aliases in tsconfig.base.json that resolve to sibling lib source, not dist artifacts. The workspace default targetDefaults.build.dependsOn: ["^build"] is an artifact-based declaration that did not match the codebase. Combined with @nx/js plugin auto-inference of build targets on every lib with a tsconfig.lib.json, it forces nx build to walk into leaf libs that cannot compile standalone with tsc. This causes failed builds. This commit changes the workspace default to [], making the declaration match the actual bundling pattern. Apps no longer pull broken leaf libs through their build chain, instead using their dependencies with their aliases. --- nx.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nx.json b/nx.json index 4c76abe9c93..40efa812c72 100644 --- a/nx.json +++ b/nx.json @@ -33,7 +33,7 @@ "parallel": 4, "targetDefaults": { "build": { - "dependsOn": ["^build"], + "dependsOn": [], "inputs": ["production", "^production"], "outputs": ["{options.outputPath}"], "cache": true