codemap icon indicating copy to clipboard operation
codemap copied to clipboard

ts/js: nested tsconfig paths and package.json main directory imports are missed

Open JordanCoin opened this issue 1 month ago • 0 comments

Two TS/JS resolution misses from the import-accuracy benchmark (#264, tuned set):

  1. tsconfig paths in nested packages are not applied to files under that package (trpc examples: ~/* aliases), most of trpc's 356 false negatives.
  2. Directory imports resolved through the target's package.json main are missed (eslint: require("../../packages/js")).

Expected: each file resolves paths against its nearest tsconfig, and a directory import checks package.json main/exports before index.*.

Part of #238 and #239.

JordanCoin avatar Nov 03 '26 18:11 JordanCoin