Files
deepseek-harness/scripts/fixtures
imccyu e84374f19b test(scripts): check external TypeScript consumers of three Client packages
verify-client-package-consumer-types, part of `pnpm run hygiene` after
the build, pins the type compatibility commitment to code outside the
repository. It installs the built workspace packages into a temporary
consumer project through node_modules and the package exports, and
compiles the fixtures in scripts/fixtures/client-package-consumer/ as
separate programs under NodeNext and Bundler resolution: package-root
imports and augmentations only, /client only, both spellings in one
file, and both spellings across two files in either order. Each program
asserts the exact merged SlotMap and GlobalStandardProps keys, the owner
types, that renderSlot accepts the augmented keys and rejects another
one, and that both import specifiers read the same interface.

A negative control compiles the mixed programs against a copy of
ui-slots whose root types forward to ./client from a separate file; they
must fail there. The fixtures resolve the packages only inside that
temporary install, so the Host program, type-aware lint, and the
repository spelling check skip them.

The hygiene aggregate in scripts/run-gates.spec.ts lists the new
client-package-consumer-types id after node-next-types.
2026-11-28 02:28:52 +08:00
..