From 5ba752779d51c5b3085e124daaf82fe148271527 Mon Sep 17 00:00:00 2001 From: enitrat Date: Fri, 13 Feb 2026 11:03:13 +0000 Subject: [PATCH] fix: add transitive @types deps for consumers of raw .ts source Since the package ships raw TypeScript source (all exports point to ./src/*.ts), consumers see type errors from Smithers' internal imports of react-dom/server and react-reconciler. skipLibCheck only skips .d.ts files, not .ts files in node_modules. Move @types/react-reconciler to dependencies and add @types/react-dom so they're installed transitively for consumers. --- package.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 0f3f38ad..81d526cc 100644 --- a/package.json +++ b/package.json @@ -55,6 +55,8 @@ "dependencies": { "@ai-sdk/anthropic": "^3.0.36", "@mdx-js/esbuild": "^3.1.1", + "@types/react-dom": "^19.2.0", + "@types/react-reconciler": "^0.28.9", "ai": "^6.0.69", "diff": "^5.2.0", "drizzle-orm": "^0.45.1", @@ -71,7 +73,6 @@ "@types/bun": "latest", "@types/diff": "^5.2.0", "@types/react": "^19.2.10", - "@types/react-reconciler": "^0.28.9", "@playwright/test": "^1.52.0" } } \ No newline at end of file