Skip to content

Conversation

@imagekitio
Copy link
Contributor

@imagekitio imagekitio commented Oct 8, 2025

Refactor: separate client and server type generation to resolve build structure issues

  • Create separate tsconfig.client.json and tsconfig.server.json
  • Update Rollup config to use specific TypeScript configurations for each build
  • Fix package.json exports to point to correct type definitions
  • Remove unused build:types script from package.json
  • Simplify include/exclude patterns in TypeScript configs

…cture issues

- Create separate tsconfig.client.json and tsconfig.server.json
- Update Rollup config to use specific TypeScript configurations for each build
- Fix package.json exports to point to correct type definitions
- Remove unused build:types script from package.json
- Simplify include/exclude patterns in TypeScript configs

This ensures server types (/server export) only contain server-side exports
(getUploadAuthParams) instead of incorrectly including client components
(Image, Video, ImageKitProvider).

Closes: types build structure issue
@imagekitio imagekitio changed the title fix: separate client and server type generation to resolve build stru… refactor: separate client and server type generation to resolve build stru… Oct 8, 2025
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.

3 participants