chore(knip): 6.16 + rootDirs patch (fixes ./$types, refs webpro-nl/knip#1778)#46
chore(knip): 6.16 + rootDirs patch (fixes ./$types, refs webpro-nl/knip#1778)#46PetalCat wants to merge 2 commits into
Conversation
0db4020 to
e5ce013
Compare
|
Verified before/after (normal
Root cause: Next: rebase the rootDirs-scoping half onto 6.16 (so we get 6.16 + working |
|
Correction to my earlier comment — the root-cause analysis above was wrong. I compared |
Catalog knip ^6.14.2 -> ^6.16.0 and drop the old 6.14.2 patch. On its own this REPRODUCES webpro-nl/knip#1778: `pnpm lint:knip` reports 33 unresolved ./$types imports across the SvelteKit apps (knip 6.15's e190a9fe removed the rootDirs resolution workaround). The fix follows in the next commit. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
…/$types) Adds patches/knip@6.16.0.patch restoring the rootDirs resolution knip 6.15 dropped, adapted to 6.16's scope-tagged dist (scopedRootDirs mirrors scopedPaths across ProjectPrincipal / graph/build / util/load-tsconfig / typescript/resolve-module-names). Verified node:26: pnpm install clean; `pnpm lint:knip` and `lint:knip:prod` both exit 0, 0 ./$types unresolved. Reverses the regression shown in the previous commit. Upstream #1778. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
|
Superseded by #49 (knip 6.16.1), which resolves the SvelteKit |
Updates knip to 6.16 and re-adds the
rootDirsresolution that 6.15 dropped, so SvelteKit./$typesresolves again.Why: knip 6.15 (
e190a9fe) removed the rootDirs workaround (4dc16cc9, for #1628), assuming oxc-resolver 11.20 covered it — it does not for the SvelteKit-monorepo shape, so./$typesregressed. 6.16 kept the gap. Upstream issue: webpro-nl/knip#1778.This PR:
knip^6.14.2 → ^6.16.0 (gets 6.16's upstream workspace-scopedpaths)rootDirsresolution aspatches/knip@6.16.0.patch(adapted to 6.16's scope-tagged dist —scopedRootDirsmirror ofscopedPathsacross ProjectPrincipal / graph/build / util/load-tsconfig / typescript/resolve-module-names)Verified (node:26):
pnpm installclean;pnpm lint:knipandlint:knip:prodboth exit 0 — 0./$typesunresolved, no$libfalse-positives.Replaces the old hand-rolled
patches/knip.patch(was on 6.14.2). 🤖 Generated with Claude Code