mirror of
https://github.com/CopilotKit/CopilotKit.git
synced 2026-09-14 16:26:20 +08:00
996ac76a24
OSS-899 shipped 81 strict-mode errors to consumers because nothing checked what the published .d.cts files reach for. validate-dts-ambient.ts checks their shape; this checks their imports against the one thing that matters -- whether someone who installed this package and nothing else can resolve them. Flags devDependencies, optional peers, dependencies whose types live in a devDependency @types package, relative imports of JS-only bundler chunks, and an explicit ban on graphql-yoga, whose types drag lru-cache@10 into every consumer program. Currently red on 18 real violations; the fixes follow.