Skip to content

fix: resolve monorepo type errors and stabilize build#26960

Draft
gemini-cli[bot] wants to merge 2 commits into
mainfrom
bot/task-BT-68
Draft

fix: resolve monorepo type errors and stabilize build#26960
gemini-cli[bot] wants to merge 2 commits into
mainfrom
bot/task-BT-68

Conversation

@gemini-cli
Copy link
Copy Markdown
Contributor

@gemini-cli gemini-cli Bot commented May 12, 2026

fix: resolve monorepo type errors and stabilize build

This PR addresses several critical build and type-checking issues across the monorepo:

  1. Core Package Stability: Removed deprecated baseUrl from packages/core/tsconfig.json and converted absolute-style imports to relative paths. This allows tsc --build to succeed reliably.
  2. Modern JS API Support: Upgraded lib to ES2023 in packages/test-utils and packages/vscode-ide-companion to resolve errors related to Error.cause and other modern JavaScript features.
  3. SDK Type Integrity: Fixed several noImplicitAny errors and resolved inheritance issues in SdkTool and SdkToolInvocation by refining generic constraints and adding necessary ESLint disable comments for complex type bypasses.
  4. DevTools ESM Compliance: Added missing .js extensions to relative imports in the DevTools client and fixed un-typed property access in log objects.
  5. Build Graph Optimization: Added missing project references in test-utils and removed redundant paths in evals to ensure correct build order and declaration resolution.

These changes collectively restore the ability to run npm run typecheck and npm run build across the entire project.

cc @google-gemini/gemini-cli-maintainers

This PR addresses several critical build and type-checking issues across the monorepo:

1.  **Core Package Stability**: Removed deprecated `baseUrl` from `packages/core/tsconfig.json` and converted absolute-style imports to relative paths. This allows `tsc --build` to succeed reliably.
2.  **Modern JS API Support**: Upgraded `lib` to `ES2023` in `packages/test-utils` and `packages/vscode-ide-companion` to resolve errors related to `Error.cause` and other modern JavaScript features.
3.  **SDK Type Integrity**: Fixed several `noImplicitAny` errors and resolved inheritance issues in `SdkTool` and `SdkToolInvocation` by refining generic constraints and adding necessary ESLint disable comments for complex type bypasses.
4.  **DevTools ESM Compliance**: Added missing `.js` extensions to relative imports in the DevTools client and fixed un-typed property access in log objects.
5.  **Build Graph Optimization**: Added missing project references in `test-utils` and removed redundant `paths` in `evals` to ensure correct build order and declaration resolution.

These changes collectively restore the ability to run `npm run typecheck` and `npm run build` across the entire project.

cc @google-gemini/gemini-cli-maintainers
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