Look at the file the consumer resolves the import to, not at whether the lib has a build target.
The @support/tsconfig presets set the @ledgerhq/source condition, so most consumers resolve even a
published lib to its src/ (the --traceResolution output of tsc shows the resolved file):
- a file under
lib/orlib-es/: the consumer reads built output, which goes stale when the source
changes. That happens when the exports entry has no @ledgerhq/source condition, or when the
consumer's config clears customConditions (a tsconfig.build.json). Rebuild the lib.
- a file under
src/: the consumer reads the current source, and a rebuild cannot fix the error, even
when the lib keeps an nx:noop build target. Go to the source-only checks below. One exception:
a lib whose no-build entry in