mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-05-14 22:02:59 -07:00
9424a3a07d
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
23 lines
935 B
JSON
23 lines
935 B
JSON
{
|
|
"compilerOptions": {
|
|
"module": "NodeNext",
|
|
"moduleResolution": "NodeNext",
|
|
"target": "ES2022",
|
|
"lib": ["DOM", "DOM.Iterable", "ES2023"],
|
|
"sourceMap": true,
|
|
/*
|
|
* skipLibCheck is necessary because the a2a-server package depends on
|
|
* @google-cloud/storage which pulls in @types/request which depends on
|
|
* tough-cookie@4.x while jsdom requires tough-cookie@5.x. This causes a
|
|
* type checking error in ../../node_modules/@types/request/index.d.ts.
|
|
*/
|
|
"skipLibCheck": true,
|
|
"rootDir": "src",
|
|
"strict": true /* enable all strict type-checking options */
|
|
/* Additional Checks */
|
|
// "noImplicitReturns": true, /* Report error when not all code paths in function return a value. */
|
|
// "noFallthroughCasesInSwitch": true, /* Report errors for fallthrough cases in switch statement. */
|
|
// "noUnusedParameters": true, /* Report errors on unused parameters. */
|
|
}
|
|
}
|