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 <app> 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.
This commit is contained in:
Addison Beck 2026-06-11 10:26:06 -04:00 committed by GitHub
parent 0e3634d2d2
commit dddaba1f35
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -33,7 +33,7 @@
"parallel": 4,
"targetDefaults": {
"build": {
"dependsOn": ["^build"],
"dependsOn": [],
"inputs": ["production", "^production"],
"outputs": ["{options.outputPath}"],
"cache": true