fix: separate Next.js types into /next subpath export#137
fix: separate Next.js types into /next subpath export#137sohil-kshirsagar merged 3 commits intomainfrom
Conversation
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Generated 40 tests - 40 passedTest Summary
ResultsTusk's tests all pass cleanly. The test suite validates the core logic for separating Next.js types into a subpath export—specifically View check history
Was Tusk helpful? Give feedback by reacting with 👍 or 👎 |


Summary
withTuskDriftandTuskDriftNextOptionsto a new@use-tusk/drift-node-sdk/nextsubpath export@use-tusk/drift-node-sdk) no longer imports fromnext, eliminating transitive type errors (@types/react, etc.) for non-Next.js consumerstypesfields to all subpath exports for proper TypeScript resolutionProblem
The generated
dist/index.d.ctshadimport { NextConfig } from "next"on line 1. Any consumer importing anything from the SDK — even justTuskDrift— would trigger TypeScript to resolvenextand transitivelyreacttypes, causing 187+ type errors in strict configs withoutskipLibCheck.