deno
e36e971d - fix(sync-types): materialize jsr tarballs + map jsr subpaths precisely (GAP 3)

Commit
135 days ago
fix(sync-types): materialize jsr tarballs + map jsr subpaths precisely (GAP 3) Two fixes so jsr:@scope/name@version/subpath imports type-check: - Tarball extraction failed on nested files (e.g. _dist/mod.d.ts) because Entry::unpack doesn't create parent dirs; create them first. Previously @jsr/ stayed empty and the install retried per-subpath. - Map each jsr specifier to the exact .d.ts resolved through the installed package's exports (relative path), keyed on the specifier as written in source. A relative target avoids the TS5090 a non-relative @jsr/* wildcard would emit. oak: 87 -> 8 tsgo errors (all jsr subpaths resolve). Remaining: import-map alias-subpath imports (fresh/dotcom), jsx (GAP 4), @types/node globals (GAP 5).
Author
Parents
Loading