mirror of
https://github.com/vercel-labs/scriptc.git
synced 2026-11-04 08:04:37 +08:00
A monorepo can pin one copy of a package with a tsconfig `paths` entry that names its installed directory. Its import then resolves as a project import to the package's declarations, so when the package runs in a Node island, preflight refused it as types-only (SC1010) and the lowering skipped it as a project module, leaving its bindings unlowered (SC2013). Both now treat it as the island import it is: typed by its declarations, loaded in Node. Corpus 6839 imports an ESM island package through such a mapping and uses its interfaces and generic aliases from typed code. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>