Skip to content

Add a new @roo-code/types package and use it everywhere #3912

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 16 commits into
base: main
Choose a base branch
from

Conversation

cte
Copy link
Collaborator

@cte cte commented May 24, 2025

Description

Now that we have a monorepo we can start sharing code in packages. I started with moving src/schemas into a @roo-code/types package. This cleans a lot of stuff up and lets us get rid of the generate-types stuff. We can also get rid of the Roo-Code-Types repo and publish the npm package from packages/types 💪 .

I also defined build dependencies in turbo.json for a cleaner build process.


Important

Introduce @roo-code/types package for centralized type definitions, update imports, and clean up redundant code.

  • New Package:
    • Adds @roo-code/types package for centralized type definitions and schemas.
    • Updates imports across the codebase to use @roo-code/types.
  • Build and Configuration:
    • Updates turbo.json to include @roo-code/types in build dependencies.
    • Modifies esbuild.mjs and vite.config.ts to alias @roo-code/types.
    • Removes generate-types script and related pre-commit hook.
  • Code Cleanup:
    • Deletes overwrite_changeset_changelog.py and condensing.test.ts as part of cleanup.
    • Removes redundant type definitions from src/exports/roo-code.d.ts and src/utils/type-fu.ts.
  • Testing:
    • Updates test configurations to include @roo-code/types.
    • Adjusts jest.config.cjs and vitest.config.ts for new type paths.

This description was created by Ellipsis for bada1ba. You can customize this summary. It will automatically update as commits are pushed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: New
Development

Successfully merging this pull request may close these issues.

1 participant