What happened
The SDK exposes declarations only through conditional exports and lacks a top-level types fallback used by classic node or node10 TypeScript resolution.
Reproduction:
- Build the current SDK so
dist/index.d.ts exists.
- Link it into an isolated consumer's
node_modules.
- Import
@dormice/sdk with TypeScript moduleResolution=node.
- Compare with Bundler resolution and with
@dormice/shared under node resolution.
Expected: The documented bare package import should resolve its declarations, or the package should state a modern-resolution requirement.
Actual: TypeScript reports TS2307 and explicitly says the declaration exists but cannot be resolved under the configured mode. Bundler resolution succeeds, and the shared package succeeds because it provides top-level fallbacks.
Impact: Local or tarball TypeScript consumers using classic package resolution cannot import the queued SDK package. The package is not yet published, and classic resolution is deprecated in newer TypeScript, which narrows current scope.
dor doctor output
Not applicable — the finding is an isolated TypeScript declaration-resolution reproduction and does not involve a running daemon. dor doctor was not run.
Environment
- Reproduction mode: Focused-source reproduction
- Dormice commit:
4417ae14938273f5d937c476cf7cdc57e22e53a5
- Compiler: TypeScript 5.9.3 and 6.0.3
- Resolution modes: node, Bundler, and shared-package controls
- Verification: Verified with TypeScript 5.9.3 and 6.0.3 against SDK main at
4417ae14938273f5d937c476cf7cdc57e22e53a5.
What happened
The SDK exposes declarations only through conditional exports and lacks a top-level
typesfallback used by classicnodeornode10TypeScript resolution.Reproduction:
dist/index.d.tsexists.node_modules.@dormice/sdkwith TypeScriptmoduleResolution=node.@dormice/sharedunder node resolution.Expected: The documented bare package import should resolve its declarations, or the package should state a modern-resolution requirement.
Actual: TypeScript reports TS2307 and explicitly says the declaration exists but cannot be resolved under the configured mode. Bundler resolution succeeds, and the shared package succeeds because it provides top-level fallbacks.
Impact: Local or tarball TypeScript consumers using classic package resolution cannot import the queued SDK package. The package is not yet published, and classic resolution is deprecated in newer TypeScript, which narrows current scope.
dor doctor output
Not applicable — the finding is an isolated TypeScript declaration-resolution reproduction and does not involve a running daemon.
dor doctorwas not run.Environment
4417ae14938273f5d937c476cf7cdc57e22e53a54417ae14938273f5d937c476cf7cdc57e22e53a5.