Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Rebuilds a monorepo lib when a typecheck import error resolves to its built output instead of source.
17% 96%+78 ptsof test cases passed
Passed 22 of 23 test cases with the skill, and 4 of 23 without it.
This test ran on v1. v3 is the current version and hasn’t been tested on gemini-3.6-flash yet.
3 of 3 safety checks passed
Not used yet
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):
lib/ or lib-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.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
source-only-debt.mjs
says its build generates files under src/ needs that build when those files are missing.nx run @ledgerhq/name_of_lib_here:build
When several are stale, pnpm build:libs runs build on the @ledgerhq packages, minus the ones its
script in the root package.json excludes.
The error is in the source or the exports map, and a rebuild cannot fix it. Check that:
exports: see the
package checklist;Next to this one in the catalogue, plus more from the same author.