Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Dead-code / unused-dependency detection is migrating from the legacy `unimported` tool to `knip`, which requires each package to expose an explicit, minimal `package.json#exports` (no `./*` wildcard). Read this when adding a new package or migrating an existing one.
26% 100%+74 ptsof test cases passed
Passed 23 of 23 test cases with the skill, and 6 of 23 without it.
This test ran on v3. v5 is the current version and hasn’t been tested on gemini-3.6-flash yet.
3 of 3 safety checks passed
Not used yet
Dead-code / unused-dependency detection runs on knip. The legacy unimported tool is gone
and the dependency checks deny it. CI (the Monorepo Checks job, pnpm knip:all locally)
checks every workspace except the legacy packages listed in
support/knip/knip.json#ignoreWorkspaces. That list only shrinks: a migrated package
leaves it, and a new package never joins it. A package needs no workspaces entry either, since
knip derives its entry files from package.json (main, bin, exports) and its own defaults
(entry files).
knip treats everything listed in a package's package.json#exports as an entry point.
Most legacy libs/ packages export a ./* wildcard mapped to ./src/*.ts (via the
@ledgerhq/source custom condition declared in support/tsconfig/base.json):
"./*": {
"@ledgerhq/source": "./src/*.ts",
"import": "./lib-es/*.js",
"require": "./lib/*.js",
"default": "./lib/*.js"
}
Because of this wildcard, knip considers every top-level src/*.ts file "used" and cannot
detect unused ("zombie") top-level source files. So a package needs to replace the ./* wildcard with explicit, minimal subpath exports that enumerate
the package's true public API.
The few libs already pointed at knip (e.g.
libs/live-wallet,libs/live-dmk-mobile) still keep the./*wildcard, so they are only partially migrated — do not copy them as the template.
A new package has no consumers, so it should start in the target state:
exports only. Enumerate the real public API; do not add a ./* wildcard.
Mirror the . root entry per subpath, keeping the conditions:
"exports": {
Next to this one in the catalogue, plus more from the same author.