Skip to content

chore(ntpclient): resolve TypeScript module errors without requiring a build#1159

Merged
ffflorian merged 3 commits intomainfrom
fix/ntpclient-typescript-exports
Mar 28, 2026
Merged

chore(ntpclient): resolve TypeScript module errors without requiring a build#1159
ffflorian merged 3 commits intomainfrom
fix/ntpclient-typescript-exports

Conversation

@ffflorian
Copy link
Copy Markdown
Owner

Summary

  • ntpclient: Expand exports field to include a types condition pointing to src/index.ts, so TypeScript can resolve types from source without needing a prior dist/ build
  • my-timezone: Exclude vitest.config.ts from TypeScript compilation in tsconfig.json

Test plan

  • Verify the Cannot find module 'ntpclient' TypeScript error is gone in my-timezone/src/MyTimezone.ts without building ntpclient first
  • Run yarn build:ts and confirm both packages compile successfully
  • Run yarn test and confirm tests pass

…pt resolution

Without a built dist/, TypeScript could not find type declarations when
resolving the ntpclient module. Adding a types condition in the exports
map pointing to src/index.ts allows TypeScript to resolve types directly
from source without requiring a prior build step.
@ffflorian ffflorian changed the title fix: resolve TypeScript module errors without requiring a build fix(ntpclient): resolve TypeScript module errors without requiring a build Mar 28, 2026
@ffflorian ffflorian changed the title fix(ntpclient): resolve TypeScript module errors without requiring a build chore(ntpclient): resolve TypeScript module errors without requiring a build Mar 28, 2026
@ffflorian ffflorian merged commit 7b70f13 into main Mar 28, 2026
4 checks passed
@ffflorian ffflorian deleted the fix/ntpclient-typescript-exports branch March 28, 2026 20:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant