diff options
| author | Taylor Mullen <[email protected]> | 2025-05-16 22:41:57 -0700 |
|---|---|---|
| committer | N. Taylor Mullen <[email protected]> | 2025-05-16 22:43:50 -0700 |
| commit | 58e02240612e0a0eddc1427a795f5003ee2b3d07 (patch) | |
| tree | ebaece1d404a1b1c73ee162f3e46494366231db4 /packages/server/tsconfig.json | |
| parent | e486d84d6a627ce2563ac2313d55c46a663d4bc0 (diff) | |
Refactor: Use String.prototype.replaceAll() and update TS lib
- Replaces the custom `replaceAll` implementation in `packages/server/src/tools/edit.ts` with the standard `String.prototype.replaceAll()`.
- Updates `packages/server/tsconfig.json` to include `ES2021` in the `lib` compiler options to ensure TypeScript recognizes this method. This aligns with the project's Node.js version requirements \(Node.js 16.x+\).
Fixes https://github.com/google-gemini/gemini-cli/issues/7
Diffstat (limited to 'packages/server/tsconfig.json')
| -rw-r--r-- | packages/server/tsconfig.json | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/server/tsconfig.json b/packages/server/tsconfig.json index cd6b8a33..eda58ff3 100644 --- a/packages/server/tsconfig.json +++ b/packages/server/tsconfig.json @@ -2,7 +2,7 @@ "extends": "../../tsconfig.json", "compilerOptions": { "outDir": "dist", - "lib": ["DOM", "DOM.Iterable", "ES2020"], + "lib": ["DOM", "DOM.Iterable", "ES2021"], "composite": true }, "include": ["index.ts", "src/**/*.ts", "src/**/*.json"], |
