codemap
codemap copied to clipboard
ts/js: nested tsconfig paths and package.json main directory imports are missed
Two TS/JS resolution misses from the import-accuracy benchmark (#264, tuned set):
- tsconfig
pathsin nested packages are not applied to files under that package (trpc examples:~/*aliases), most of trpc's 356 false negatives. - Directory imports resolved through the target's
package.jsonmainare 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.